mirror of
https://github.com/YunoHost-Apps/noalyss_ynh.git
synced 2024-09-03 19:46:20 +02:00
[mod] simplify commnad
This commit is contained in:
parent
a70f7dce3f
commit
1b7edbb5ba
1 changed files with 1 additions and 4 deletions
|
@ -4,9 +4,6 @@ final_path=/var/www/noalyss
|
|||
|
||||
sudo rm -rf $final_path
|
||||
|
||||
for i in $(sudo su postgres -c "psql -l | grep \"\<noalyss\>\" | awk '{print $1}'")
|
||||
do
|
||||
sudo su postgres -c "dropdb $i"
|
||||
done
|
||||
sudo su postgres -c "psql -l | grep \"\<noalyss\>\" | awk '{print $1}' | xargs -l dropdb"
|
||||
|
||||
sudo su postgres -c 'dropuser noalyss'
|
||||
|
|
Loading…
Reference in a new issue