1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/z-push_ynh.git synced 2024-09-03 18:05:58 +02:00
z-push_ynh/scripts/remove
polytan02 11a4afea04 Use reload for php-fpm instead of restart
This is to avoid stopping other apps while doing a z-push_ynh install or update.
2016-01-05 09:12:42 +01:00

15 lines
334 B
Bash

#!/bin/bash
app=z-push
domain=$(sudo yunohost app setting $app domain)
# Cleaning
sudo rm -rf /var/www/$app
sudo rm -rf /var/log/$app
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
sudo rm -f /etc/php5/fpm/pool.d/$app.conf
# Restart of services
sudo service php5-fpm reload
sudo service nginx reload
sudo yunohost app ssowatconf