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

11 lines
188 B
Text
Raw Normal View History

2015-09-27 23:37:04 +02:00
final_path=/var/www/noalyss
sudo rm -rf $final_path
2015-09-27 23:42:07 +02:00
for i in $(psql -l | grep "\<noalyss\>" | awk '{print $1}')
do
su postgres -c "dropdb $i"
done
2015-09-27 23:37:04 +02:00
su postgres -c "dropuser noalyss"