mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
fix cron permissions
This commit is contained in:
parent
9436601b6f
commit
d69ade0585
3 changed files with 12 additions and 1 deletions
|
@ -1 +1 @@
|
||||||
*/10 * * * * www-data /usr/bin/php __FINALPATH__/app/actualize_script.php >/tmp/FreshRSS.log 2>&1
|
*/10 * * * * __APP__ /usr/bin/php7.0 __FINALPATH__/app/actualize_script.php >/tmp/FreshRSS.log 2>&1
|
||||||
|
|
|
@ -168,6 +168,7 @@ done
|
||||||
ynh_print_info "Setting up cron..."
|
ynh_print_info "Setting up cron..."
|
||||||
cron_path="/etc/cron.d/$app"
|
cron_path="/etc/cron.d/$app"
|
||||||
ynh_replace_string "__FINALPATH__" $final_path ../conf/freshrss.cron
|
ynh_replace_string "__FINALPATH__" $final_path ../conf/freshrss.cron
|
||||||
|
ynh_replace_string "__APP__" $app ../conf/freshrss.cron
|
||||||
cp ../conf/freshrss.cron "$cron_path"
|
cp ../conf/freshrss.cron "$cron_path"
|
||||||
chmod 644 "$cron_path"
|
chmod 644 "$cron_path"
|
||||||
|
|
||||||
|
|
|
@ -141,6 +141,16 @@ ynh_replace_string "APPNAMETOCHANGE" $app ../hooks/post_app_addaccess
|
||||||
ynh_replace_string "APPNAMETOCHANGE" $app ../hooks/post_user_create
|
ynh_replace_string "APPNAMETOCHANGE" $app ../hooks/post_user_create
|
||||||
ynh_replace_string "APPNAMETOCHANGE" $app ../hooks/post_user_delete
|
ynh_replace_string "APPNAMETOCHANGE" $app ../hooks/post_user_delete
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# CRON SETUP
|
||||||
|
#=================================================
|
||||||
|
ynh_print_info "Setting up cron..."
|
||||||
|
cron_path="/etc/cron.d/$app"
|
||||||
|
ynh_replace_string "__FINALPATH__" $final_path ../conf/freshrss.cron
|
||||||
|
ynh_replace_string "__APP__" $app ../conf/freshrss.cron
|
||||||
|
cp ../conf/freshrss.cron "$cron_path"
|
||||||
|
chmod 644 "$cron_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue