From 1f8df16048b0bd90832b04e142d4aaa6d2f3b021 Mon Sep 17 00:00:00 2001 From: Huo Linhe Date: Thu, 13 Apr 2023 16:28:07 +0800 Subject: [PATCH] chore: fix install.sh when not root --- packaging/tools/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/tools/install.sh b/packaging/tools/install.sh index 2eaebc2490..1b47b10520 100755 --- a/packaging/tools/install.sh +++ b/packaging/tools/install.sh @@ -579,7 +579,7 @@ function install_share_etc() { out=/etc/${clientName2}/$c.new.`date +%F` ${csudo}cp -f ${script_dir}/share/etc/$c $out ||: else - mkdir -p /etc/${clientName2} >/dev/null 2>/dev/null ||: + ${csudo}mkdir -p /etc/${clientName2} >/dev/null 2>/dev/null ||: ${csudo}cp -f ${script_dir}/share/etc/$c /etc/${clientName2}/$c ||: fi done -- GitLab