diff --git a/scripts/remove b/scripts/remove index d1de1fd..9637951 100644 --- a/scripts/remove +++ b/scripts/remove @@ -1,21 +1,10 @@ #!/bin/bash -# Exit on command errors and treat unset variables as an error -set -eu - -# Source YunoHost helpers -. /usr/share/yunohost/helpers - # Define app app=phpsysinfo # Retrieve app settings domain=$(ynh_app_setting_get "$app" domain) -path=$(ynh_app_setting_get "$app" path) -admin=$(ynh_app_setting_get "$app" admin) -is_public=$(ynh_app_setting_get "$app" is_public) -language=$(ynh_app_setting_get "$app" language) -display_mode=$(ynh_app_setting_get "$app" display_mode) # Remove sources sudo rm -rf /var/www/$app @@ -24,4 +13,4 @@ sudo rm -rf /var/www/$app sudo rm -f /etc/nginx/conf.d/$domain.d/phpsysinfo.conf # Restart services -sudo service nginx reload \ No newline at end of file +sudo service nginx reload