1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pufferpanel_ynh.git synced 2024-09-03 20:16:03 +02:00
This commit is contained in:
Éric Gaspar 2023-10-18 16:48:55 +02:00
parent c06b645085
commit 698fd7673e
2 changed files with 3 additions and 1 deletions

View file

@ -32,6 +32,7 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
ynh_backup --src_path="/etc/$app/"
ynh_backup --src_path="/var/lib/$app/"
#=================================================
# END OF SCRIPT

View file

@ -27,10 +27,11 @@ chown -R $app:www-data "$install_dir"
ynh_script_progression --message="Restoring various files..."
ynh_restore_file --origin_path="/etc/$app/"
ynh_restore_file --origin_path="/var/lib/$app/"
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
#ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable $app.service --quiet
yunohost service add $app --description="Web-based Game Server Management System" --log="/var/log/$app/$app.log"