Update start.sh

This commit is contained in:
MarkusMcNugen 2018-02-03 23:19:02 -05:00 committed by GitHub
parent 605e31d5ee
commit af2fc80c0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,6 +128,16 @@ for name_server_item in "${name_server_list[@]}"; do
done
if [[ -z "${PUID}" ]]; then
echo "[info] PUID not defined. Defaulting to root user" | ts '%Y-%m-%d %H:%M:%.S'
export PUID="root"
fi
if [[ -z "${PGID}" ]]; then
echo "[info] PGID not defined. Defaulting to root group" | ts '%Y-%m-%d %H:%M:%.S'
export PGID="root"
fi
if [[ $VPN_ENABLED == "yes" ]]; then
echo "[info] Starting OpenVPN..." | ts '%Y-%m-%d %H:%M:%.S'
cd /config/openvpn