mirror of
https://github.com/YunoHost-Apps/snserver_ynh.git
synced 2024-09-03 20:26:22 +02:00
Fix: Remove error messages
This commit is contained in:
parent
1fb254fc2a
commit
a347a2c909
1 changed files with 10 additions and 3 deletions
|
@ -244,13 +244,20 @@ if [ -n $(ynh_app_setting_get --app="$app" --key=port) ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If old service exsits; remove it
|
# If old service exsits; remove it
|
||||||
if [ $(cat /etc/yunohost/services.yml | grep "$app:") -eq "$app" ]; then
|
if [ -n $(cat /etc/yunohost/services.yml | grep "$app:") ]; then
|
||||||
yunohost service remove "$app"
|
yunohost service remove "$app"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove old config scripts
|
# Remove old config scripts
|
||||||
ynh_secure_remove --file="/etc/yunohost/apps/$app/config_panel.toml"
|
if [ -e "/etc/yunohost/apps/$app/config_panel.toml" ]; then
|
||||||
ynh_secure_remove --file="/etc/yunohost/apps/$app/scripts/config"
|
{
|
||||||
|
ynh_secure_remove --file="/etc/yunohost/apps/$app/config_panel.toml"
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ -e "/etc/yunohost/apps/$app/scripts/config" ]; then
|
||||||
|
{
|
||||||
|
ynh_secure_remove --file="/etc/yunohost/apps/$app/scripts/config"
|
||||||
|
}
|
||||||
|
|
||||||
# Remove old dependencies
|
# Remove old dependencies
|
||||||
if [[ ! $standalone ]];
|
if [[ ! $standalone ]];
|
||||||
|
|
Loading…
Add table
Reference in a new issue