projects
/
ext/instance-debootstrap.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Some extra example hooks
[ext/instance-debootstrap.git]
/
examples
/
hooks
/
hosts
1
#!/bin/sh
2
#
3
# This is an example script that sets the hostname and hosts file
4
5
VMFQDN=$INSTANCE_NAME
6
VMHOSTNAME=${VMFQDN%%.*}
7
8
[ x$VMFQDN -eq x$VMHOSTNAME ] && VMFQDN=""
9
10
echo "127.0.1.1 $VMFQDN $VMHOSTNAME" >> $TARGET/etc/host
11