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:
parent
1a40ff1eed
commit
f2013abebc
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue