mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
Merge 526642a03c
into fd03685a3d
This commit is contained in:
commit
38f888f0c5
2 changed files with 5 additions and 0 deletions
|
@ -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 \
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue