We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e282e1e commit fbb9791Copy full SHA for fbb9791
bin/ovpn_genconfig
@@ -267,8 +267,10 @@ fi
267
[ -z "$OVPN_PORT" ] && OVPN_PORT=1194
268
[ -z "$CUSTOM_ROUTE_CONFIG" ] && process_route_config "192.168.254.0/24"
269
270
-# Save extra client config
271
-OVPN_ADDITIONAL_CLIENT_CONFIG=$(cat $TMP_EXTRA_CLIENT_CONFIGFILE)
+# Save extra client config from temp file only if temp file is not empty
+if [ -s "$TMP_EXTRA_CLIENT_CONFIGFILE" ]; then
272
+ OVPN_ADDITIONAL_CLIENT_CONFIG=$(cat $TMP_EXTRA_CLIENT_CONFIGFILE)
273
+fi
274
275
export OVPN_SERVER OVPN_ROUTES OVPN_DEFROUTE
276
export OVPN_SERVER_URL OVPN_ENV OVPN_PROTO OVPN_CN OVPN_PORT
0 commit comments