1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/microbin_ynh.git synced 2024-09-03 19:45:57 +02:00
This commit is contained in:
Éric Gaspar 2024-06-23 21:39:31 +02:00
parent 4fb27965a4
commit a4572f4eb5
2 changed files with 0 additions and 6 deletions

View file

@ -4,7 +4,6 @@
# IMPORT GENERIC HELPERS # IMPORT GENERIC HELPERS
#================================================= #=================================================
# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
source ../settings/scripts/_common.sh source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
@ -26,10 +25,8 @@ ynh_backup "$data_dir"
# SYSTEM CONFIGURATION # SYSTEM CONFIGURATION
#================================================= #=================================================
# Backup the nginx configuration
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
# Backup the systemd service unit
ynh_backup "/etc/systemd/system/$app.service" ynh_backup "/etc/systemd/system/$app.service"
#================================================= #=================================================

View file

@ -4,7 +4,6 @@
# IMPORT GENERIC HELPERS # IMPORT GENERIC HELPERS
#================================================= #=================================================
# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
source ../settings/scripts/_common.sh source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
@ -24,7 +23,6 @@ ynh_script_progression "Restoring the data directory..."
ynh_restore "$data_dir" ynh_restore "$data_dir"
### (Same as for install dir)
chown -R "$app:www-data" "$data_dir" chown -R "$app:www-data" "$data_dir"
#================================================= #=================================================
@ -44,7 +42,6 @@ yunohost service add "$app" --description="Configurable file-sharing app" --log=
#================================================= #=================================================
ynh_script_progression "Reloading NGINX web server and $app's service..." ynh_script_progression "Reloading NGINX web server and $app's service..."
### Typically you only have either $app or php-fpm but not both at the same time...
ynh_systemctl --service="$app" --action="start" ynh_systemctl --service="$app" --action="start"
ynh_systemctl --service=nginx --action=reload ynh_systemctl --service=nginx --action=reload