mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-19 04:16:21 +00:00
Don't set the hostname in the scope container when running with weavedns.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user