1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/noalyss_ynh.git synced 2024-09-03 19:46:20 +02:00
noalyss_ynh/scripts/remove

17 lines
355 B
Text
Raw Normal View History

2015-09-27 23:55:31 +02:00
set -e
2015-09-27 23:37:04 +02:00
final_path=/var/www/noalyss
sudo rm -rf $final_path
2015-09-28 01:21:12 +02:00
sudo su postgres -c "psql -l | grep \"\<noalyss\>\" | awk '{print \$1}' | xargs -l dropdb"
2015-09-27 23:42:07 +02:00
2015-09-28 00:41:17 +02:00
sudo su postgres -c 'dropuser noalyss'
2015-09-29 01:47:07 +02:00
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)