|
@@ -274,7 +274,7 @@ function init:add_user() {
|
|
function init:git() {
|
|
function init:git() {
|
|
log::info "[git]" "安装git环境..."
|
|
log::info "[git]" "安装git环境..."
|
|
local host="127.0.0.1"
|
|
local host="127.0.0.1"
|
|
- local exc_cmd = "git config --global credential.helper store"
|
|
|
|
|
|
+ local exc_cmd="git config --global credential.helper store"
|
|
command::exec "${host}" "
|
|
command::exec "${host}" "
|
|
yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
|
|
yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
|
|
yum -y install git
|
|
yum -y install git
|
|
@@ -333,7 +333,7 @@ function init:nginx() {
|
|
function init:nodejs() {
|
|
function init:nodejs() {
|
|
log::info "[nodejs]" "安装nodejs环境..."
|
|
log::info "[nodejs]" "安装nodejs环境..."
|
|
local host="127.0.0.1"
|
|
local host="127.0.0.1"
|
|
- local exc_cmd = "
|
|
|
|
|
|
+ local exc_cmd="
|
|
# 配置npm源
|
|
# 配置npm源
|
|
npm config set registry https://registry.npm.taobao.org
|
|
npm config set registry https://registry.npm.taobao.org
|
|
npm config set disturl https://npm.taobao.org/dist
|
|
npm config set disturl https://npm.taobao.org/dist
|