hi just wanna share what i have found, seems like the problem is with
/www/server/panel/plugin/pgsql_manager/pgsql_install.sh
with this line,
yum install -y zlib zlib-devel uuid uuid-devel >& /del/null
the uuid keep failing, so when i do manual
yum install -y zlib zlib-devel uuid uuid-devel >& /dev/null
and do this in /www/server/panel/plugin/pgsql_manager/
./pgsql_install.sh "postgresql-11.0.tar.gz" https://node.aapanel.com/src/postgresql-11.0.tar.gz
it's work, hope this can help others until the code is fix
update :
you wanna look into useradd in linux add user
useradd -m $user -g $group $user
is getting error in line 45, so i take a look removing $user make it work
useradd -m -g $group $user