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
|
||||
|
||||
# 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"
|
||||
fi
|
||||
|
||||
# Remove old config scripts
|
||||
if [ -e "/etc/yunohost/apps/$app/config_panel.toml" ]; then
|
||||
{
|
||||
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
|
||||
if [[ ! $standalone ]];
|
||||
|
|
Loading…
Add table
Reference in a new issue