Don't set the hostname in the scope container when running with weavedns.

This commit is contained in:
Tom Wilkie
2015-05-22 17:11:06 +00:00
parent f577bbc76f
commit 2c9a2da14f
2 changed files with 2 additions and 13 deletions
-10
View File
@@ -14,11 +14,6 @@ while true; do
DNS_SERVER="$2"
shift 2
;;
--hostname)
[ $# -gt 1 ] || usage
HOSTNAME="$2"
shift 2
;;
--searchpath)
[ $# -gt 1 ] || usage
SEARCHPATH="$2"
@@ -36,9 +31,4 @@ if [ -n "$DNS_SERVER" -a -n "$SEARCHPATH" ]; then
echo "nameserver $DNS_SERVER" >>/etc/resolv.conf
fi
if [ -n "$HOSTNAME" ]; then
echo "$HOSTNAME" >/etc/hostname
hostname -F /etc/hostname
fi
exec /sbin/runsvdir /etc/service