mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-30 09:31:44 +00:00
Update 99-run.sh
This commit is contained in:
1 parent
9b689b4b72
commit
ca13b33fef
1 file changed
+2
-2
@@ -29,10 +29,10 @@ if bashio::config.has_value 'Updates'; then
|
|||||||
# Sets cron // do not delete this message
|
# Sets cron // do not delete this message
|
||||||
cp /templates/cronupdate /etc/cron."${FREQUENCY}"/
|
cp /templates/cronupdate /etc/cron."${FREQUENCY}"/
|
||||||
chmod 777 /etc/cron."${FREQUENCY}"/cronupdate
|
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
|
# 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
|
# Starts cron
|
||||||
service cron start
|
service cron start
|
||||||
|
|||||||
Reference in new issue
Block a user