File: hosts

package info (click to toggle)
ganeti-instance-debootstrap 0.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 240 kB
  • sloc: sh: 488; makefile: 54
file content (10 lines) | stat: -rwxr-xr-x 230 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
#
# This is an example script that sets the hostname and hosts file.

VMFQDN=$INSTANCE_NAME
VMHOSTNAME=${VMFQDN%%.*}

[ x$VMFQDN -eq x$VMHOSTNAME ] && VMFQDN=""

echo "127.0.1.1		$VMFQDN $VMHOSTNAME" >> $TARGET/etc/host