1
0
Fork 0
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:
Inrepublica 2016-05-28 15:32:59 +02:00
commit e5a34ae0b7

View file

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