1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpsysinfo_ynh.git synced 2024-09-03 19:56:43 +02:00

Install and remove process

This commit is contained in:
inrepublica 2016-05-25 17:03:43 +02:00
parent 6723b92136
commit 3077cf05d7
4 changed files with 18 additions and 6 deletions

View file

@ -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:

View file

@ -13,7 +13,7 @@
"email": "duvalmickael@gmail.com"
},
"requirements": {
"yunohost": ">> 2.4.0.1"
"yunohost": ">> 2.4.0.4"
},
"multi_instance": "false",
"services": [

View file

@ -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

View file

@ -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