Merge pull request #112 from DyonR/dev
Start VPN client whenever VPN_ENABLED is 1/true/yes
This commit is contained in:
commit
8d38e5795e
@ -136,7 +136,7 @@ RUN apt update \
|
|||||||
qtbase5-dev \
|
qtbase5-dev \
|
||||||
qttools5-dev \
|
qttools5-dev \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
&& QBITTORRENT_RELEASE=$(curl -sX GET "https://api.github.com/repos/qBittorrent/qBittorrent/tags" | jq '.[] | select(.name | index ("beta") | not) | select(.name | index ("rc") | not) | .name' | head -n 1 | tr -d '"') \
|
&& QBITTORRENT_RELEASE=$(curl -sX GET "https://api.github.com/repos/qBittorrent/qBittorrent/tags" | jq '.[] | select(.name | index ("alpha") | not) | select(.name | index ("beta") | not) | select(.name | index ("rc") | not) | .name' | head -n 1 | tr -d '"') \
|
||||||
&& curl -o /opt/qBittorrent-${QBITTORRENT_RELEASE}.tar.gz -L "https://github.com/qbittorrent/qBittorrent/archive/${QBITTORRENT_RELEASE}.tar.gz" \
|
&& curl -o /opt/qBittorrent-${QBITTORRENT_RELEASE}.tar.gz -L "https://github.com/qbittorrent/qBittorrent/archive/${QBITTORRENT_RELEASE}.tar.gz" \
|
||||||
&& tar -xzf /opt/qBittorrent-${QBITTORRENT_RELEASE}.tar.gz \
|
&& tar -xzf /opt/qBittorrent-${QBITTORRENT_RELEASE}.tar.gz \
|
||||||
&& rm /opt/qBittorrent-${QBITTORRENT_RELEASE}.tar.gz \
|
&& rm /opt/qBittorrent-${QBITTORRENT_RELEASE}.tar.gz \
|
||||||
|
@ -256,7 +256,7 @@ if [[ -z "${PGID}" ]]; then
|
|||||||
export PGID="root"
|
export PGID="root"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $VPN_ENABLED == "yes" ]]; then
|
if [[ $VPN_ENABLED == "1" || $VPN_ENABLED == "true" || $VPN_ENABLED == "yes" ]]; then
|
||||||
if [[ "${VPN_TYPE}" == "openvpn" ]]; then
|
if [[ "${VPN_TYPE}" == "openvpn" ]]; then
|
||||||
echo "[INFO] Starting OpenVPN..." | ts '%Y-%m-%d %H:%M:%.S'
|
echo "[INFO] Starting OpenVPN..." | ts '%Y-%m-%d %H:%M:%.S'
|
||||||
cd /config/openvpn
|
cd /config/openvpn
|
||||||
|
Loading…
x
Reference in New Issue
Block a user