diff --git a/README.md b/README.md index 570b233..ca19e0a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # PHPSysInfo for Yunohost -PhpSysInfo for [Yunohost](http://yunohost.org/). Works with Debian 8 and YunoHost 2.4.0.1. +PhpSysInfo 3.2.5 for [Yunohost](http://yunohost.org/). Works with Debian 8 and YunoHost 2.4.0.4. # Installation You can install this package by going through the administration web interface by choosing "Install custom app", or using the moulinette: diff --git a/manifest.json b/manifest.json index 00cc848..2040153 100644 --- a/manifest.json +++ b/manifest.json @@ -13,7 +13,7 @@ "email": "duvalmickael@gmail.com" }, "requirements": { - "yunohost": ">> 2.4.0.1" + "yunohost": ">> 2.4.0.4" }, "multi_instance": "false", "services": [ diff --git a/scripts/install b/scripts/install index 8c16173..edf468b 100644 --- a/scripts/install +++ b/scripts/install @@ -5,10 +5,10 @@ admin=$3 is_public=$4 # Save app settings -# sudo yunohost app setting $app domain -v "$domain" -# sudo yunohost app setting $app path -v "$path" -# sudo yunohost app setting $app admin -v "$admin" -# sudo yunohost app setting $app is_public -v "$is_public" +sudo yunohost app setting $app domain -v "$domain" +sudo yunohost app setting $app path -v "$path" +sudo yunohost app setting $app admin -v "$admin" +sudo yunohost app setting $app is_public -v "$is_public" # Check domain/path availability sudo yunohost app checkurl $domain$path -a phpsysinfo diff --git a/scripts/remove b/scripts/remove index 935397e..d47d5dc 100644 --- a/scripts/remove +++ b/scripts/remove @@ -1,8 +1,20 @@ +# 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) + # Remove sources sudo rm -rf /var/www/phpsysinfo # Remove configuration files sudo rm -f /etc/nginx/conf.d/$domain.d/phpsysinfo.conf +# If app is public, delete url to SSOWat +if [[ $is_public -eq 1 ]]; +then + ynh_app_setting_delete "$app" skipped_uris +fi + # Restart services sudo service nginx reload \ No newline at end of file