mirror of
https://github.com/YunoHost-Apps/phpsysinfo_ynh.git
synced 2024-09-03 19:56:43 +02:00
Bug fixe
This commit is contained in:
parent
e5a34ae0b7
commit
2edbfa5911
2 changed files with 4 additions and 2 deletions
|
@ -9,9 +9,11 @@ app=phpsysinfo
|
||||||
# Source YunoHost helpers
|
# Source YunoHost helpers
|
||||||
. /usr/share/yunohost/helpers
|
. /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
# Retrieve app settings
|
||||||
|
domain=$(ynh_app_setting_get "$app" domain)
|
||||||
|
|
||||||
# Backup sources & data
|
# Backup sources & data
|
||||||
ynh_backup "/var/www/${app}" "sources"
|
ynh_backup "/var/www/${app}" "sources"
|
||||||
|
|
||||||
# Copy NGINX configuration
|
# Copy NGINX configuration
|
||||||
domain=$(ynh_app_setting_get "$app" domain)
|
|
||||||
ynh_backup "/etc/nginx/conf.d/${domain}.d/${app}.conf" "nginx.conf"
|
ynh_backup "/etc/nginx/conf.d/${domain}.d/${app}.conf" "nginx.conf"
|
|
@ -40,7 +40,7 @@ then
|
||||||
# See install script
|
# See install script
|
||||||
ynh_app_setting_set "$app" unprotected_uris "/"
|
ynh_app_setting_set "$app" unprotected_uris "/"
|
||||||
# Remove old settings
|
# Remove old settings
|
||||||
ynh_app_setting_delete "$app" skipped_uris
|
# ynh_app_setting_delete "$app" skipped_uris
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Restart services
|
# Restart services
|
||||||
|
|
Loading…
Add table
Reference in a new issue