forked from haugene/docker-transmission-openvpn
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix openvpn problems, remove tinyproxy, move dockerfile to ubuntu 18.…
…04 as alpine crashes
- Loading branch information
Showing
10 changed files
with
86 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.vscode | ||
.vscode | ||
docker-compose.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/bash | ||
|
||
/etc/deluge/stop.sh | ||
[[ ! -f /opt/tinyproxy/stop.sh ]] || /opt/tinyproxy/stop.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,44 @@ | ||
#!/bin/bash | ||
|
||
if [ "${PEER_DNS}" != "no" ]; then | ||
NS= | ||
DOMAIN= | ||
SEARCH= | ||
i=1 | ||
while true ; do | ||
eval opt=\$foreign_option_${i} | ||
[ -z "${opt}" ] && break | ||
if [ "${opt}" != "${opt#dhcp-option DOMAIN *}" ] ; then | ||
if [ -z "${DOMAIN}" ] ; then | ||
DOMAIN="${opt#dhcp-option DOMAIN *}" | ||
else | ||
SEARCH="${SEARCH}${SEARCH:+ }${opt#dhcp-option DOMAIN *}" | ||
fi | ||
elif [ "${opt}" != "${opt#dhcp-option DNS *}" ] ; then | ||
NS="${NS}nameserver ${opt#dhcp-option DNS *}\n" | ||
fi | ||
i=$((${i} + 1)) | ||
done | ||
|
||
if [ -n "${NS}" ] ; then | ||
DNS="# Generated by openvpn for interface ${dev}\n" | ||
if [ -n "${SEARCH}" ] ; then | ||
DNS="${DNS}search ${DOMAIN} ${SEARCH}\n" | ||
elif [ -n "${DOMAIN}" ]; then | ||
DNS="${DNS}domain ${DOMAIN}\n" | ||
fi | ||
DNS="${DNS}${NS}" | ||
if [ -x /sbin/resolvconf ] ; then | ||
printf "${DNS}" | /sbin/resolvconf -a "${dev}" | ||
else | ||
# Preserve the existing resolv.conf | ||
if [ -e /etc/resolv.conf ] ; then | ||
cp /etc/resolv.conf /etc/resolv.conf-"${dev}".sv | ||
fi | ||
printf "${DNS}" > /etc/resolv.conf | ||
chmod 644 /etc/resolv.conf | ||
fi | ||
fi | ||
fi | ||
|
||
/etc/deluge/start.sh "$@" | ||
[[ ! -f /opt/tinyproxy/start.sh ]] || /opt/tinyproxy/start.sh |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters