mirror of
https://github.com/YunoHost-Apps/phpsysinfo_ynh.git
synced 2024-09-03 19:56:43 +02:00
[fix] Do not block app removal and remove unused parts
This commit is contained in:
parent
98fc12864f
commit
ed6653dec7
1 changed files with 1 additions and 12 deletions
|
@ -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
|
||||
sudo service nginx reload
|
||||
|
|
Loading…
Add table
Reference in a new issue