Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,14 @@ if [ -n "$2" ]; then branch="$2" ; fi
sed -i s/\GRUB_CMDLINE_LINUX=\"\/GRUB_CMDLINE_LINUX=\"net.ifnames=0\ \/ /etc/default/grub
update-grub

apt-get update
apt-get install -y git python3-pip curl openvpn wget supervisor nginx
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curl'а в чистой системе не будет. Если потом продолжить работу скрипта install.sh, то фронтовая часть не соберется и не будет доступна.

apt-get update
apt-get install -y nodejs
apt-get install -y redis-server
apt-get install -y ifupdown net-tools
apt-get install -y git python3-pip curl openvpn wget supervisor nginx nodejs redis-server ifupdown net-tools
cd /opt
git clone $repositoryUrl
cd $ROOT_PROJECT_PATH
git checkout $branch
python3 -m pip install django==3.2
python3 -m pip install requests==2.25.1
python3 -m pip install ldap3==2.9
python3 -m pip install celery==4.4.2
python3 -m pip install redis==3.5.3
python3 -m pip install gunicorn==19.4.5
python3 -m pip install django==3.2 requests==2.25.1 ldap3==2.9 celery==4.4.2 redis==3.5.3 gunicorn==19.4.5
mkdir db
python3 manage.py makemigrations vpnserver
python3 manage.py migrate
Expand Down