cfcb62cd97
Addition of base commands to manage a dedicated php-fpm process very easily Standard empty app is not modified or changed.
24 lines
558 B
Bash
Executable File
24 lines
558 B
Bash
Executable File
#!/bin/bash
|
|
app=ynhexample
|
|
|
|
# Retrieve arguments
|
|
domain=$(sudo yunohost app setting $app domain)
|
|
path=$(sudo yunohost app setting $app path)
|
|
admin=$(sudo yunohost app setting $app admin)
|
|
is_public=$(sudo yunohost app setting $app is_public)
|
|
|
|
# Remove sources
|
|
sudo rm -rf /var/www/$app
|
|
|
|
# Remove configuration files
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
|
|
|
# If a dedicated php-fpm process is used :
|
|
#
|
|
#sudo rm -f /etc/php5/fpm/pool.d/$app.conf
|
|
#sudo service php5-fpm reload
|
|
|
|
# Restart services
|
|
sudo service nginx reload
|
|
sudo yunohost app ssowatconf
|