cron user

This commit is contained in:
Alexandre
2022-01-17 11:26:09 +01:00
parent 931845e0a4
commit d32cf48b4f
2 changed files with 16 additions and 16 deletions

View File

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

View File

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