1
0
Fork 0
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:
Fabian Wilkens 2021-07-11 16:30:40 +02:00
parent 1fb254fc2a
commit a347a2c909
No known key found for this signature in database
GPG key ID: 23DFA025BB4E9FAB

View file

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