blob: 8730eb0ed1b426360a7c82e93823448fe8a9eb5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
post_install() {
if [[ ! -e /etc/munge/munge.key && -c /dev/urandom ]]; then
echo "Creating random munge key at /etc/munge/munge.key"
dd if=/dev/urandom bs=1 count=1024 of=/etc/munge/munge.key
chmod 0400 /etc/munge/munge.key
else
if [[ -c /dev/urandom ]]; then
echo "No munge key generated since /etc/munge/munge.key already exists."
else
echo "Did not create /etc/munge/munge.key since /dev/urandom can not be found."
fi
fi
}
|