mirror of
https://github.com/YunoHost-Apps/microbin_ynh.git
synced 2024-09-03 19:45:57 +02:00
cleaning
This commit is contained in:
parent
4fb27965a4
commit
a4572f4eb5
2 changed files with 0 additions and 6 deletions
|
@ -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"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue