Compliance with Yunohost’s package linter (except scripts/{backup,restore})

This commit is contained in:
Pierre-Antoine Rault
2016-12-08 16:12:16 +01:00
parent a4566abdfa
commit 05009d2414
4 changed files with 33 additions and 17 deletions

View File

@@ -3,7 +3,7 @@
db_user=ffsync
db_name=ffsync
root_pwd=$(sudo cat /etc/yunohost/mysql)
domain=$(sudo yunohost app setting ffsync domain)
domain=$(sudo 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