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