Skip to content

Commit

Permalink
Removed rename as not necessary, fixed torguard updateconfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
pkishino committed Jun 22, 2021
1 parent a14b525 commit 73ec516
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ VOLUME /config

RUN echo "@community http://dl-cdn.alpinelinux.org/alpine/v3.13/community" >> /etc/apk/repositories \
&& apk --no-cache add bash dumb-init ip6tables ufw@community openvpn shadow transmission-daemon transmission-cli \
curl jq tzdata openrc tinyproxy tinyproxy-openrc openssh unrar git util-linux \
curl jq tzdata openrc tinyproxy tinyproxy-openrc openssh unrar git \
&& mkdir -p /opt/transmission-ui \
&& echo "Install Flood for Transmission" \
&& wget -qO- https://github.com/johman10/flood-for-transmission/releases/download/latest/flood-for-transmission.tar.gz | tar xz -C /opt/transmission-ui \
Expand Down
2 changes: 1 addition & 1 deletion openvpn/torguard/updateConfigs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ curl -L https://torguard.net/downloads/OpenVPN-UDP.zip -o OpenVPN-UDP.zip \
&& unzip -j OpenVPN-UDP.zip && rm OpenVPN-UDP.zip

# Remove TorGuard prefix of config files and ensure linux line endings
rename 's/^TorGuard\.//' *.ovpn
for old in TorGuard*.ovpn; do new=$(echo $old | sed -e 's/^TorGuard\.//'); mv "$old" "$new"; done

# Convert CRLF to Linux
sed -i "s/\r$//" *.ovpn
Expand Down

0 comments on commit 73ec516

Please sign in to comment.