mirror of
https://github.com/YunoHost-Apps/phpsysinfo_ynh.git
synced 2024-09-03 19:56:43 +02:00
Merge pull request #1 from jeromelebleu/patch-remove
Do not block app removal and remove unused parts
This commit is contained in:
commit
e5a34ae0b7
1 changed files with 1 additions and 12 deletions
|
@ -1,21 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Exit on command errors and treat unset variables as an error
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
# Source YunoHost helpers
|
|
||||||
. /usr/share/yunohost/helpers
|
|
||||||
|
|
||||||
# Define app
|
# Define app
|
||||||
app=phpsysinfo
|
app=phpsysinfo
|
||||||
|
|
||||||
# Retrieve app settings
|
# Retrieve app settings
|
||||||
domain=$(ynh_app_setting_get "$app" domain)
|
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
|
# Remove sources
|
||||||
sudo rm -rf /var/www/$app
|
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
|
sudo rm -f /etc/nginx/conf.d/$domain.d/phpsysinfo.conf
|
||||||
|
|
||||||
# Restart services
|
# Restart services
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
|
|
Loading…
Add table
Reference in a new issue