Update 99-run.sh

This commit is contained in:
Alexandre
2022-02-14 10:44:08 +01:00
committed by GitHub
parent ca240457a9
commit 280eac3228

View File

@@ -29,10 +29,10 @@ if bashio::config.has_value 'Updates'; then
# Sets cron // do not delete this message
cp /templates/cronupdate /etc/cron."${FREQUENCY}"/
chmod 777 /etc/cron."${FREQUENCY}"/cronupdate
# chown www-data:www-data /etc/cron."${FREQUENCY}"/cronupdate
chown www-data:www-data /etc/cron."${FREQUENCY}"/cronupdate
# Sets cron to run with www-data user
# sed -i 's|root|www-data|g' /etc/crontab
sed -i 's|root|www-data|g' /etc/crontab
# Starts cron
service cron start