Skip to content

Commit 03fdd10

Browse files
authored
Update ssh-vpn.sh
1 parent f854a8c commit 03fdd10

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ssh/ssh-vpn.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ rm -f /etc/nginx/conf.d/vps.conf
104104

105105
# Download custom configs
106106
wget -q -O /etc/nginx/nginx.conf "https://raw.githubusercontent.com/givps/AutoScriptXray/master/ssh/nginx.conf"
107-
# wget -q -O /etc/nginx/conf.d/vps.conf "https://raw.githubusercontent.com/givps/AutoScriptXray/master/ssh/vps.conf"
107+
mkdir -p /home/vps/public_html
108+
chown -R www-data:www-data /home/vps/public_html
109+
wget -q -O /etc/nginx/conf.d/vps.conf "https://raw.githubusercontent.com/givps/AutoScriptXray/master/ssh/vps.conf"
108110

109111
# Add systemd override (fix for early startup)
110112
mkdir -p /etc/systemd/system/nginx.service.d
@@ -117,9 +119,6 @@ systemctl start nginx
117119

118120
# Setup web root directory
119121
wget -q -O /usr/share/nginx/html/index.html "https://raw.githubusercontent.com/givps/AutoScriptXray/master/ssh/index"
120-
mkdir -p /home/vps/public_html
121-
# Set ownership
122-
chown -R www-data:www-data /home/vps/public_html
123122

124123
# install badvpn
125124
wget -qO- https://raw.githubusercontent.com/givps/AutoScriptXray/master/ssh/install-udpgw.sh | bash

0 commit comments

Comments
 (0)