From 2991cbaf01f65ac53ddf25bdec7b750baa460708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Wed, 14 Aug 2024 00:35:38 +0200 Subject: [PATCH] Crontab path --- start.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 2c512d8..9c0753e 100755 --- a/start.sh +++ b/start.sh @@ -63,7 +63,11 @@ if [ ! -e /srv/.vimrc ]; then fi # Crontab -test ! -e /srv/conf/crontab && touch /srv/conf/crontab +if [ test ! -e /srv/conf/crontab]; then + echo 'PATH=/srv/bin/primary_tech:/srv/bin/primary_tech/sbin:/srv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/sbin:/srv/bin/primary_tech:/srv/bin/primary_tech/sbin:/srv/bin:/srv/bin/active_bun:/srv/bin/active_deno:/srv/bin/active_golang:/srv/bin/active_node:/srv/bin/active_openjdk:/srv/bin/active_php:/srv/bin/active_python:/srv/bin/active_ruby' > /srv/conf/crontab + echo "" >> /srv/conf/crontab + echo "" >> /srv/conf/crontab +fi if [ -e /srv/conf/crontab ]; then crontab -u app /srv/conf/crontab fi