fixed a forgotten import of the script helper and removed sudo before helpers

This commit is contained in:
Pierre-Antoine Rault
2016-12-13 16:12:58 +01:00
parent d569748da5
commit 6d15a15a01
3 changed files with 16 additions and 10 deletions

View File

@@ -1,9 +1,12 @@
#!/bin/bash
# Source app helpers
. /usr/share/yunohost/helpers
db_user=ffsync
db_name=ffsync
root_pwd=$(sudo cat /etc/yunohost/mysql)
domain=$(sudo ynh_app_setting_get ffsync domain)
domain=$(ynh_app_setting_get ffsync domain)
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
sudo rm -rf /opt/yunohost/ffsync