|
@@ -219,7 +219,7 @@ function init:mkdir() {
|
|
|
log::info "[mkdir]" "创建目录..."
|
|
|
local host="127.0.0.1"
|
|
|
command::exec "${host}" "
|
|
|
- mkdir -p ${BASE_DIR}
|
|
|
+ sudo mkdir -p ${BASE_DIR}
|
|
|
sudo chown -R \\\$(id -u):\\\$(id -g) ${BASE_DIR}
|
|
|
"
|
|
|
check::exit_code "$?" "git" "$host 创建目录:${BASE_DIR}" "exit"
|
|
@@ -231,8 +231,8 @@ function init:git() {
|
|
|
log::info "[git]" "安装git环境..."
|
|
|
local host="127.0.0.1"
|
|
|
command::exec "${host}" "
|
|
|
- yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
|
|
|
- yum -y install git
|
|
|
+ sudo yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
|
|
|
+ sudo yum -y install git
|
|
|
git --version
|
|
|
git config --global credential.helper store
|
|
|
"
|