using export -p ratehr than printenv to export environmental variables (export -p correctly wraps envs in quotes)

This commit is contained in:
Jason Kulatunga
2022-05-12 15:06:29 -07:00
parent 54b195f851
commit eeb086c77f
Regular → Executable
+1 -1
View File
@@ -4,7 +4,7 @@
# So when the container starts up, we will do a dump of the runtime environment into a .env file that we
# will then source into the crontab file (/etc/cron.d/scrutiny.sh)
printenv | sed 's/^\(.*\)$/export \1/g' > /env.sh
(set -o posix; export -p) > /env.sh
echo "starting cron"
cron -f -L 15