diff --git a/scripts/remove b/scripts/remove index 148b4f1..3a7c757 100644 --- a/scripts/remove +++ b/scripts/remove @@ -6,7 +6,7 @@ sudo rm -rf $final_path for i in $(psql -l | grep "\" | awk '{print $1}') do - su postgres -c "dropdb $i" + sudo "su postgres -c \"dropdb $i\"" done su postgres -c "dropuser noalyss"