From 71f8f0a446b5f8b674f370b72f955c2851b5c29a Mon Sep 17 00:00:00 2001 From: sys4-fr Date: Tue, 27 Mar 2018 19:22:08 +0200 Subject: [PATCH] Update install script --- install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install.sh b/install.sh index 8248356..831230e 100755 --- a/install.sh +++ b/install.sh @@ -204,6 +204,15 @@ install_world() { fi mv minetest/worlds/nalc minetest/worlds/nalc_old + + if [[ -n $pg_dbname ]]; then + dropdb $pg_dbname + verif + dropdb players-$pg_dbname + verif + createdb $pg_dbname + createdb players-$pg_dbname + fi fi fi