mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
up
This commit is contained in:
@@ -26,7 +26,7 @@ if [ ! -f /root/.acme.sh ];then
|
||||
curl https://get.acme.sh | sh
|
||||
fi
|
||||
|
||||
if [ -f "/etc/init.d/iptables" ];then
|
||||
if [ -f /etc/init.d/iptables ];then
|
||||
|
||||
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
|
||||
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
|
||||
|
||||
@@ -26,9 +26,14 @@ chmod 755 /www/server/mdserver-web/data
|
||||
#venv
|
||||
cd /www/server/mdserver-web && python3 -m venv .
|
||||
|
||||
if [ ! -f /usr/local/bin/pip3 ];then
|
||||
python3 -m pip install --upgrade pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple
|
||||
fi
|
||||
|
||||
if [ -f /www/server/mdserver-web/bin/activate ];then
|
||||
cd /www/server/mdserver-web && source /www/server/mdserver-web/bin/activate && pip3 install -r /www/server/mdserver-web/requirements.txt
|
||||
else
|
||||
|
||||
cd /www/server/mdserver-web && pip3 install -r /www/server/mdserver-web/requirements.txt
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user