diff --git a/scripts/remove b/scripts/remove index 4f603c5..af5ab27 100644 --- a/scripts/remove +++ b/scripts/remove @@ -1,6 +1,8 @@ #!/bin/bash -domain=$(sudo yunohost app setting zerobin domain) +app=$YNH_APP_INSTANCE_NAME -sudo rm -rf /var/www/zerobin -sudo rm -f /etc/nginx/conf.d/$domain.d/zerobin.conf +domain=$(sudo yunohost app setting $app domain) + +sudo rm -rf /var/www/$app +sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf