mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-03-09 15:50:00 +00:00
Fix mlvpn source install and use binary by default
This commit is contained in:
parent
fd10d9ac20
commit
5291876fe6
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ UBOND_PASS=${UBOND_PASS:-$(head -c 32 /dev/urandom | base64 -w0)}
|
||||||
OPENVPN=${OPENVPN:-yes}
|
OPENVPN=${OPENVPN:-yes}
|
||||||
DSVPN=${DSVPN:-yes}
|
DSVPN=${DSVPN:-yes}
|
||||||
WIREGUARD=${WIREGUARD:-yes}
|
WIREGUARD=${WIREGUARD:-yes}
|
||||||
SOURCES=${SOURCES:-yes}
|
SOURCES=${SOURCES:-no}
|
||||||
NOINTERNET=${NOINTERNET:-no}
|
NOINTERNET=${NOINTERNET:-no}
|
||||||
REINSTALL=${REINSTALL:-yes}
|
REINSTALL=${REINSTALL:-yes}
|
||||||
SPEEDTEST=${SPEEDTEST:-no}
|
SPEEDTEST=${SPEEDTEST:-no}
|
||||||
|
@ -657,6 +657,7 @@ if [ "$MLVPN" = "yes" ]; then
|
||||||
if [ -f /etc/mlvpn/mlvpn0.conf ]; then
|
if [ -f /etc/mlvpn/mlvpn0.conf ]; then
|
||||||
mlvpnupdate="1"
|
mlvpnupdate="1"
|
||||||
fi
|
fi
|
||||||
|
mkdir -p /etc/mlvpn
|
||||||
if [ "$SOURCES" = "yes" ]; then
|
if [ "$SOURCES" = "yes" ]; then
|
||||||
rm -f /var/lib/dpkg/lock
|
rm -f /var/lib/dpkg/lock
|
||||||
rm -f /var/lib/dpkg/lock-frontend
|
rm -f /var/lib/dpkg/lock-frontend
|
||||||
|
@ -691,7 +692,6 @@ if [ "$MLVPN" = "yes" ]; then
|
||||||
else
|
else
|
||||||
apt-get -y -o Dpkg::Options::="--force-overwrite" install omr-mlvpn=${MLVPN_BINARY_VERSION}
|
apt-get -y -o Dpkg::Options::="--force-overwrite" install omr-mlvpn=${MLVPN_BINARY_VERSION}
|
||||||
fi
|
fi
|
||||||
mkdir -p /etc/mlvpn
|
|
||||||
if [ "$mlvpnupdate" = "0" ]; then
|
if [ "$mlvpnupdate" = "0" ]; then
|
||||||
sed -i "s:MLVPN_PASS:$MLVPN_PASS:" /etc/mlvpn/mlvpn0.conf
|
sed -i "s:MLVPN_PASS:$MLVPN_PASS:" /etc/mlvpn/mlvpn0.conf
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue