Docker backend infrastructure

This commit is contained in:
ChiefSoft works
2022-07-31 14:56:41 +00:00
parent ef29296471
commit 8e09298ad1
14 changed files with 2633 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
if [ ! "$PHP_CRONTABS_PATH" == "" ]; then
printf "env CRONTABS_PATH: setting up crontabs: ";
for f in ${PHP_CRONTABS_PATH}; do
printf "$f, ";
rm -f /etc/cron.d/${f##*/}
cp $f /etc/cron.d/
chmod 0644 /etc/cron.d/${f##*/}
done
echo
touch /var/log/cron.log
printenv | grep -v "no_proxy" >> /etc/environment
/etc/init.d/cron start > /dev/null
fi