Update file run_before_01-add-temporary-includes.tmpl
This commit is contained in:
parent
bd63558ee2
commit
449993033a
1 changed files with 4 additions and 2 deletions
|
@ -1,20 +1,22 @@
|
|||
{{- if (ne .host.distro.family "windows") -}}
|
||||
if [ ! -f /tmp/tmp-profile ]; then
|
||||
### Add pre-scaffolding profile to /tmp/tmp-profile so it's easier to navigate through scripts
|
||||
cat << EOF > /tmp/tmp-profile
|
||||
#!/usr/bin/env bash
|
||||
{{ includeTemplate "universal/profile-inline" }}
|
||||
EOF
|
||||
|
||||
### Make /tmp/tmp-profile owned by root to prevent tampering
|
||||
sudo chown root /tmp/tmp-profile
|
||||
fi
|
||||
|
||||
if [ ! -f /tmp/tmp-logg ]; then
|
||||
### Add pre-scaffolding /tmp/tmp-logg
|
||||
cat << EOF > /tmp/tmp-logg
|
||||
#!/usr/bin/env bash
|
||||
{{ includeTemplate "universal/logg-inline" }}
|
||||
EOF
|
||||
|
||||
### Make /tmp/tmp-logg owned by root to prevent tampering
|
||||
sudo chown root /tmp/tmp-logg
|
||||
fi
|
||||
|
||||
{{ end -}}
|
Loading…
Reference in a new issue