Update file run_before_01-add-temporary-includes.tmpl
This commit is contained in:
parent
be33940eb8
commit
77b04805c6
1 changed files with 16 additions and 12 deletions
|
@ -2,21 +2,25 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
### Ensure /tmp/tmp-profile is created and owned by root
|
### Ensure /tmp/tmp-profile is created and owned by root
|
||||||
# Add pre-scaffolding profile to /tmp/tmp-profile so it's easier to navigate through scripts
|
if [ ! -f /tmp/tmp-profile ]; then
|
||||||
cat << EOF > /tmp/tmp-profile
|
# Add pre-scaffolding profile to /tmp/tmp-profile so it's easier to navigate through scripts
|
||||||
{{ includeTemplate "universal/profile-inline" }}
|
cat << 'EOF' > /tmp/tmp-profile
|
||||||
EOF
|
{{ includeTemplate "universal/profile-inline" }}
|
||||||
|
EOF
|
||||||
|
|
||||||
# Make /tmp/tmp-profile owned by root to prevent tampering
|
# Make /tmp/tmp-profile owned by root to prevent tampering
|
||||||
sudo chown root /tmp/tmp-profile
|
sudo chown root /tmp/tmp-profile
|
||||||
|
fi
|
||||||
|
|
||||||
### Ensure /tmp/tmp-logg is created and owned by root
|
### Ensure /tmp/tmp-logg is created and owned by root
|
||||||
# Add pre-scaffolding /tmp/tmp-logg
|
if [ ! -f /tmp/tmp-logg ]; then
|
||||||
cat << EOF > /tmp/tmp-logg
|
# Add pre-scaffolding /tmp/tmp-logg
|
||||||
{{ includeTemplate "universal/logg-inline" }}
|
cat << 'EOF' > /tmp/tmp-logg
|
||||||
EOF
|
{{ includeTemplate "universal/logg-inline" }}
|
||||||
|
EOF
|
||||||
|
|
||||||
# Make /tmp/tmp-logg owned by root to prevent tampering
|
# Make /tmp/tmp-logg owned by root to prevent tampering
|
||||||
sudo chown root /tmp/tmp-logg
|
sudo chown root /tmp/tmp-logg
|
||||||
|
fi
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
Loading…
Reference in a new issue