#!/bin/bash

#=================================================
# IMPORT GENERIC HELPERS
#=================================================

source _common.sh
source /usr/share/yunohost/helpers

#=================================================
# REMOVE SYSTEM CONFIGURATION
#=================================================

ynh_script_progression "Removing system configurations related to $app..."

if [[ -e "/usr/share/yunohost/applogos/$app.png" ]]; then
    ynh_safe_rm "/usr/share/yunohost/applogos/$app.png"
fi

ynh_config_remove_nginx
ynh_config_remove_phpfpm

#=================================================
# END OF SCRIPT
#=================================================

ynh_script_progression "Removal of $app completed"
