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"
|