From dbbdf9728a8d82c1dc88154ca2148ce993fe5d4b Mon Sep 17 00:00:00 2001 From: lqs <441785369@qq.com> Date: Tue, 4 Mar 2025 21:44:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=201.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 <