Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit 283fe33

Browse files
authored
Merge pull request #59 from tilperion2/master
Fix problem with CRLF(Windows) openVpn config files.
2 parents 015ebab + de63b93 commit 283fe33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

data/scripts/entry.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,12 @@ config_file_modified="${config_file_original}.modified"
6161
echo "Creating $config_file_modified and making required changes to that file."
6262
grep -Ev "(^up\s|^down\s)" "$config_file_original" > "$config_file_modified"
6363

64-
# These configuration file changes are required by Alpine.
64+
# These configuration file changes are required by Alpine.
65+
# Also replace carriage return char for conversion of CRLF to LF line endings
6566
sed -i \
6667
-e 's/^proto udp$/proto udp4/' \
6768
-e 's/^proto tcp$/proto tcp4/' \
69+
-e 's/\r$//' \
6870
"$config_file_modified"
6971

7072
if [[ "$KEEP_DNS_UNCHANGED" != "on" ]]; then

0 commit comments

Comments
 (0)