#!/bin/bash set -u # See comments in install script app=$YNH_APP_INSTANCE_NAME # Source YunoHost helpers . /usr/share/yunohost/helpers # Retrieve app settings domain=$(ynh_app_setting_get "$app" domain) # Remove conf and app sudo ynh_secure_remove --file=/var/www/phpldapadmin sudo ynh_secure_remove --file=/etc/nginx/conf.d/$domain.d/$app.conf sudo service nginx reload