Skip to content

Commit

Permalink
manual install update
Browse files Browse the repository at this point in the history
  • Loading branch information
guohongze committed Jan 9, 2019
1 parent 513cdc6 commit 03c9c4e
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions install/server/server_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,6 @@ case $yum1 in
;;
esac

# build webssh
echo "build webssh"
/usr/bin/yum install -y nodejs
cd $cur_dir/vendor/WebSSH2
#/usr/bin/npm install -g cnpm --registry=https://registry.npm.taobao.org
#/usr/bin/cnpm install --production
#/usr/bin/cnpm install forever -g
/usr/bin/npm config set registry http://registry.cnpmjs.org
/usr/bin/npm install --production
/usr/bin/npm install forever -g

# 分发代码
if [ ! $cur_dir ] || [ ! $adminset_dir ]
then
Expand All @@ -88,8 +77,11 @@ fi
scp $adminset_dir/install/server/ansible/ansible.cfg /etc/ansible/ansible.cfg

# install webssh
echo "build webssh"
cd $adminset_dir/vendor/webssh/
/usr/bin/env python setup.py install
scp /var/opt/adminset/main/install/server/webssh/webssh.service /usr/lib/systemd/system/webssh.service
systemctl enable webssh.service
/bin/systemctl enable webssh.service


#安装数据库
Expand Down

0 comments on commit 03c9c4e

Please sign in to comment.