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

Use of generic $app value

This commit is contained in:
polytan02 2015-08-10 14:02:32 +01:00
parent ee269003bb
commit 78c09e62c9

View file

@ -5,7 +5,7 @@ app=rainloop
db_user=$app db_user=$app
db_name=$app db_name=$app
root_pwd=$(sudo cat /etc/yunohost/mysql) root_pwd=$(sudo cat /etc/yunohost/mysql)
domain=$(sudo yunohost app setting rainloop domain) domain=$(sudo yunohost app setting $app domain)
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;" mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
sudo rm -rf /var/www/$app sudo rm -rf /var/www/$app