1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/roundcube_ynh.git synced 2024-09-03 20:16:28 +02:00

[enh] Remove the app silently

This commit is contained in:
Jérôme Lebleu 2016-05-22 22:55:22 +02:00
parent 3846236be2
commit c287a7c21b

View file

@ -12,8 +12,8 @@ dbuser=$app
. /usr/share/yunohost/helpers . /usr/share/yunohost/helpers
# Drop MySQL database and user # Drop MySQL database and user
ynh_mysql_drop_db $dbname || true ynh_mysql_drop_db "$dbname" 2>&1 || true
ynh_mysql_drop_user $dbuser || true ynh_mysql_drop_user "$dbuser" 2>&1 || true
# Retrieve domain from app settings # Retrieve domain from app settings
domain=$(ynh_app_setting_get $app domain) domain=$(ynh_app_setting_get $app domain)
@ -28,4 +28,6 @@ sudo service php5-fpm restart || true
sudo service nginx reload || true sudo service nginx reload || true
# Remove app dependencies # Remove app dependencies
ynh_package_autoremove "$DEPS_PKG_NAME" || true if ynh_package_is_installed "$DEPS_PKG_NAME"; then
ynh_package_autoremove "$DEPS_PKG_NAME"
fi