Crontab path
All checks were successful
Test build / build (push) Successful in 7m15s

This commit is contained in:
Adam Štrauch 2024-08-14 00:35:38 +02:00
parent 2891d7dc6e
commit 2991cbaf01
Signed by: cx
GPG Key ID: 7262DAFE292BCE20

View File

@ -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