1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
This commit is contained in:
frju365 2017-09-09 13:55:27 +00:00 committed by GitHub
commit 38f888f0c5
2 changed files with 5 additions and 0 deletions

View file

@ -28,6 +28,9 @@ ynh_app_setting_set $app admin_user $admin
# Retrieve admin email # Retrieve admin email
email=$(sudo yunohost user info $admin | grep mail: | sed "s/mail: //g") email=$(sudo yunohost user info $admin | grep mail: | sed "s/mail: //g")
# Installation of the dependance
ynh_install_app_dependencies php5-gd
# Check destination directory # Check destination directory
DESTDIR="/var/www/$app" DESTDIR="/var/www/$app"
[[ -d $DESTDIR ]] && ynh_die \ [[ -d $DESTDIR ]] && ynh_die \

View file

@ -20,6 +20,8 @@ sudo rm -rf "/var/www/${app}"
sudo rm -f "/etc/php5/fpm/pool.d/${app}.conf" sudo rm -f "/etc/php5/fpm/pool.d/${app}.conf"
[[ -n $domain ]] && sudo rm -f "/etc/nginx/conf.d/${domain}.d/${app}.conf" [[ -n $domain ]] && sudo rm -f "/etc/nginx/conf.d/${domain}.d/${app}.conf"
ynh_remove_app_dependencies
# Reload services # Reload services
sudo service php5-fpm restart || true sudo service php5-fpm restart || true
sudo service nginx reload || true sudo service nginx reload || true