diff --git a/scripts/remove b/scripts/remove index c81aa8f..e7f4f81 100644 --- a/scripts/remove +++ b/scripts/remove @@ -4,9 +4,6 @@ final_path=/var/www/noalyss sudo rm -rf $final_path -for i in $(sudo su postgres -c "psql -l | grep \"\\" | awk '{print $1}'") -do - sudo su postgres -c "dropdb $i" -done +sudo su postgres -c "psql -l | grep \"\\" | awk '{print $1}' | xargs -l dropdb" sudo su postgres -c 'dropuser noalyss'