Feat: enable tun for VPN services (#6562)
This commit is contained in:
parent
d9cefc3777
commit
77dcf87e6a
@ -13,6 +13,7 @@ var_disk="${var_disk:-1}"
|
|||||||
var_os="${var_os:-alpine}"
|
var_os="${var_os:-alpine}"
|
||||||
var_version="${var_version:-3.22}"
|
var_version="${var_version:-3.22}"
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
var_tun="${var_tun:-1}"
|
||||||
|
|
||||||
header_info "$APP"
|
header_info "$APP"
|
||||||
variables
|
variables
|
||||||
|
@ -13,6 +13,7 @@ var_disk="${var_disk:-4}"
|
|||||||
var_os="${var_os:-debian}"
|
var_os="${var_os:-debian}"
|
||||||
var_version="${var_version:-12}"
|
var_version="${var_version:-12}"
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
var_tun="${var_tun:-1}"
|
||||||
|
|
||||||
header_info "$APP"
|
header_info "$APP"
|
||||||
variables
|
variables
|
||||||
@ -20,20 +21,20 @@ color
|
|||||||
catch_errors
|
catch_errors
|
||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
check_container_storage
|
check_container_storage
|
||||||
check_container_resources
|
check_container_resources
|
||||||
if [[ ! -d /etc/wireguard ]]; then
|
if [[ ! -d /etc/wireguard ]]; then
|
||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
|
||||||
fi
|
|
||||||
apt-get update
|
|
||||||
apt-get -y upgrade
|
|
||||||
sleep 2
|
|
||||||
cd /etc/wgdashboard/src
|
|
||||||
./wgd.sh update
|
|
||||||
./wgd.sh start
|
|
||||||
exit
|
exit
|
||||||
|
fi
|
||||||
|
apt-get update
|
||||||
|
apt-get -y upgrade
|
||||||
|
sleep 2
|
||||||
|
cd /etc/wgdashboard/src
|
||||||
|
./wgd.sh update
|
||||||
|
./wgd.sh start
|
||||||
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
start
|
start
|
||||||
|
Loading…
x
Reference in New Issue
Block a user