mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-15 20:09:13 +02:00
cron user
This commit is contained in:
@@ -132,6 +132,9 @@ if bashio::config.has_value 'Updates'; then
|
|||||||
cp /templates/cronupdate /etc/cron."${FREQUENCY}"/
|
cp /templates/cronupdate /etc/cron."${FREQUENCY}"/
|
||||||
chmod 777 /etc/cron."${FREQUENCY}"/cronupdate
|
chmod 777 /etc/cron."${FREQUENCY}"/cronupdate
|
||||||
|
|
||||||
|
# Sets cron to run with www-data user
|
||||||
|
sed -i 's|root|www-data|g' /etc/crontab
|
||||||
|
|
||||||
# Starts cron
|
# Starts cron
|
||||||
service cron start
|
service cron start
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -7,6 +7,3 @@ bashio::log.warning "Silent mode activated. Only errors will be shown. Please di
|
|||||||
else
|
else
|
||||||
/usr/local/bin/php /var/www/html/artisan firefly:cron
|
/usr/local/bin/php /var/www/html/artisan firefly:cron
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chown -R www-data:www-data /config/addons_config/fireflyiii
|
|
||||||
chown -R www-data:www-data /var/www/html/storage
|
|
||||||
|
|||||||
Reference in New Issue
Block a user