diff --git a/1.sh b/1.sh index badbcd3..e050bf5 100644 --- a/1.sh +++ b/1.sh @@ -3,6 +3,16 @@ set -euo pipefail sudo apt update -y sudo apt install -y postgresql +# 创建用户(带存在判断) +sudo -u postgres psql <