mirror of
https://github.com/YunoHost-Apps/noalyss_ynh.git
synced 2024-09-03 19:46:20 +02:00
16 lines
355 B
Text
16 lines
355 B
Text
set -e
|
|
|
|
final_path=/var/www/noalyss
|
|
|
|
sudo rm -rf $final_path
|
|
|
|
sudo su postgres -c "psql -l | grep \"\<noalyss\>\" | awk '{print \$1}' | xargs -l dropdb"
|
|
|
|
sudo su postgres -c 'dropuser noalyss'
|
|
|
|
finalphpconf=/etc/php5/fpm/pool.d/noalyss.conf
|
|
|
|
rm $finalphpconf
|
|
rm /etc/nginx/conf.d/$domain.d/noalyss.conf
|
|
|
|
domain=$(sudo yunohost app setting noalyss domain)
|