mirror of
https://github.com/YunoHost/test_apps.git
synced 2024-09-03 20:06:29 +02:00
16 lines
360 B
Text
16 lines
360 B
Text
set -eux
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
# Retrieve arguments
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
domain=$(sudo yunohost app setting $app domain)
|
|
breakwhat=$(sudo yunohost app setting $app breakwhat)
|
|
|
|
rm /etc/nginx/conf.d/$domain.d/$app.conf
|
|
service nginx restart
|
|
|
|
if [[ $breakwhat == "remove" ]] || [[ $breakwhat == "everything" ]]
|
|
then
|
|
service nginx stop
|
|
fi
|