diff --git a/scripts/remove b/scripts/remove index f94d6db..0497cfa 100644 --- a/scripts/remove +++ b/scripts/remove @@ -7,7 +7,8 @@ db_name=$app root_pwd=$(sudo cat /etc/yunohost/mysql) domain=$(sudo yunohost app setting $app domain) -sudo mysql -u root -p $root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;" +# Remember to keep $root_pwd without a gap to -p otherwise it doesn't work +mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;" sudo rm -rf /var/www/$app sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf sudo rm -f /etc/php5/fpm/pool.d/$app.conf