From 0ded2486c3f663b3a7b48f03253b2594d2d29a89 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Wed, 28 Sep 2016 17:42:52 +0800 Subject: [PATCH] [go-xcat] Change the permission when mkdir --- xCAT-server/share/xcat/tools/go-xcat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/tools/go-xcat b/xCAT-server/share/xcat/tools/go-xcat index 6641f784d..6f2217560 100755 --- a/xCAT-server/share/xcat/tools/go-xcat +++ b/xCAT-server/share/xcat/tools/go-xcat @@ -2,7 +2,7 @@ # # go-xcat - Install xCAT automatically. # -# Version 1.0.7 +# Version 1.0.8 # # Copyright (C) 2016 International Business Machines # Eclipse Public License, Version 1.0 (EPL-1.0) @@ -714,7 +714,7 @@ function extract_archive() local install_path="$3" [[ -f "${archive}" ]] warn_if_bad "$?" "${archive}: archive file not found!" || return 1 - mkdir -p "${install_path}" 2>/dev/null + mkdir -m 0755 -p "${install_path}" 2>/dev/null warn_if_bad "$?" "Failed to create directory \`${install_path}'" || return 1 case "${archive##*.}" in