Update start.sh

This commit is contained in:
MarkusMcNugen 2018-04-16 01:16:30 -04:00 committed by GitHub
parent 768642b92f
commit b05a4ac8d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,8 @@ if [[ $VPN_ENABLED == "yes" ]]; then
# Get line number of auth-user-pass
LINE_NUM=$(grep -Fn -m 1 'auth-user-pass' ${VPN_CONFIG} | cut -d: -f 1)
sed -i "${LINE_NUM}s/^/auth-user-pass credentials.conf\n/" ${VPN_CONFIG}
else
sed -i "1s/^/auth-user-pass credentials.conf\n/" ${VPN_CONFIG}
fi
fi