mirror of
https://github.com/YunoHost-Apps/invidious_ynh.git
synced 2024-09-03 19:15:55 +02:00
Fix
This commit is contained in:
parent
e9f036fc9a
commit
5da8aa5ec2
4 changed files with 7 additions and 2 deletions
|
@ -157,7 +157,8 @@ ynh_add_systemd_config
|
||||||
ynh_script_progression --message="Setuping a cron..." --weight=1
|
ynh_script_progression --message="Setuping a cron..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template="../conf/cron_invidious" --destination="/etc/cron.d/$app"
|
ynh_add_config --template="../conf/cron_invidious" --destination="/etc/cron.d/$app"
|
||||||
chmod 644 /etc/cron.d/$app
|
chown root: "/etc/cron.d/$app"
|
||||||
|
chmod 644 "/etc/cron.d/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP LOGROTATE
|
# SETUP LOGROTATE
|
||||||
|
|
|
@ -88,6 +88,7 @@ ynh_remove_logrotate
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE VARIOUS FILES
|
# REMOVE VARIOUS FILES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Removing the cron file..." --weight=1
|
||||||
|
|
||||||
# Remove a cron file
|
# Remove a cron file
|
||||||
ynh_secure_remove --file="/etc/cron.d/$app"
|
ynh_secure_remove --file="/etc/cron.d/$app"
|
||||||
|
|
|
@ -132,6 +132,8 @@ ynh_systemd_action --service_name=$app --action=start --log_path=systemd
|
||||||
ynh_script_progression --message="Restoring various files..." --weight=1
|
ynh_script_progression --message="Restoring various files..." --weight=1
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/cron.d/$app"
|
ynh_restore_file --origin_path="/etc/cron.d/$app"
|
||||||
|
chown root: "/etc/cron.d/$app"
|
||||||
|
chmod 644 "/etc/cron.d/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE LOGROTATE CONFIGURATION
|
# RESTORE THE LOGROTATE CONFIGURATION
|
||||||
|
|
|
@ -146,7 +146,8 @@ ynh_add_systemd_config
|
||||||
ynh_script_progression --message="Setuping a cron..." --weight=1
|
ynh_script_progression --message="Setuping a cron..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template="../conf/cron_invidious" --destination="/etc/cron.d/$app"
|
ynh_add_config --template="../conf/cron_invidious" --destination="/etc/cron.d/$app"
|
||||||
chmod 644 /etc/cron.d/$app
|
chown root: "/etc/cron.d/$app"
|
||||||
|
chmod 644 "/etc/cron.d/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue