1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kiwiirc_ynh.git synced 2024-09-03 19:35:59 +02:00
This commit is contained in:
ericgaspar 2022-02-04 09:49:47 +01:00
parent ac62592e26
commit 29dc9c6c2c
4 changed files with 9 additions and 2 deletions

View file

@ -43,6 +43,8 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_backup --src_path="/etc/kiwiirc"
ynh_backup --file="/var/log/$app.log"
#=================================================
# END OF SCRIPT
#=================================================

View file

@ -85,7 +85,7 @@ ynh_add_nginx_config
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Versatile web based messenger using IRC" --log="/var/log/$app/$app.log"
yunohost service add $app --description="Versatile web based messenger using IRC" --log="/var/log/$app.log"
#=================================================
# START SYSTEMD SERVICE

View file

@ -54,6 +54,9 @@ ynh_script_progression --message="Removing various files..." --weight=1
# Remove a cron file
ynh_secure_remove --file="/etc/$app"
# Remove the log files
ynh_secure_remove --file="/var/log/$app.log"
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================

View file

@ -45,10 +45,12 @@ ynh_exec_warn_less dpkg -i $tempdir/kiwiirc.deb
#=================================================
# RESTORE THE NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Restoring the NGINX configuration..."
ynh_script_progression --message="Restoring various file..." --weight=1
ynh_restore_file --origin_path="/etc/kiwiirc"
ynh_restore_file --origin_path="/var/log/$app.log"
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================