diff --git a/scripts/remove b/scripts/remove new file mode 100644 index 0000000..ffe31b2 --- /dev/null +++ b/scripts/remove @@ -0,0 +1,10 @@ +#!/bin/bash + +app=$YNH_APP_INSTANCE_NAME + +domain=$(sudo yunohost app setting $app domain) + +sudo rm -rf /var/www/$app +sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf + +sudo service nginx reload