From eeb086c77f62f3010930f9c2c2448374121c8252 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Thu, 12 May 2022 15:06:29 -0700 Subject: [PATCH] using export -p ratehr than printenv to export environmental variables (export -p correctly wraps envs in quotes) --- rootfs/etc/services.d/cron/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 rootfs/etc/services.d/cron/run diff --git a/rootfs/etc/services.d/cron/run b/rootfs/etc/services.d/cron/run old mode 100644 new mode 100755 index 17d4216..767d1a3 --- a/rootfs/etc/services.d/cron/run +++ b/rootfs/etc/services.d/cron/run @@ -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