1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/invidious_ynh.git synced 2024-09-03 19:15:55 +02:00
This commit is contained in:
ericgaspar 2021-10-02 21:00:01 +02:00
parent e9f036fc9a
commit 5da8aa5ec2
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 7 additions and 2 deletions

View file

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

View file

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

View file

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

View file

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