1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00

remove: use ynh_mysql_remove_db helper

This commit is contained in:
Pierre de La Morinerie 2017-10-10 17:44:32 +05:30
parent 1a40ff1eed
commit f2013abebc

View file

@ -33,8 +33,7 @@ sudo rm -f "/etc/supervisor/conf.d/${app}.conf"
# REMOVE THE MYSQL DATABASE
#=================================================
# (DROP USER IF EXISTS is only available on MySQL >= 5.7, so we don't use it for now)
ynh_mysql_execute_as_root "DROP DATABASE IF EXISTS $db_name ; DROP USER $db_user@localhost ;"
ynh_mysql_remove_db "$db_user" "$db_name"
#=================================================
# REMOVE APP MAIN DIR