mirror of
https://github.com/YunoHost-Apps/noalyss_ynh.git
synced 2024-09-03 19:46:20 +02:00
12 lines
212 B
Text
12 lines
212 B
Text
set -e
|
|
|
|
final_path=/var/www/noalyss
|
|
|
|
sudo rm -rf $final_path
|
|
|
|
for i in $(psql -l | grep "\<noalyss\>" | awk '{print $1}')
|
|
do
|
|
sudo "su postgres -c \"dropdb $i\""
|
|
done
|
|
|
|
sudo "su postgres -c 'dropuser noalyss'"
|