Make hostname modscript fail on error

This commit is contained in:
Fierelier 2023-08-22 16:16:05 +02:00
parent 03dc264fa5
commit b6c0e9e0e6

View File

@ -1,2 +1,3 @@
#!/bin/bash
set -e
echo "$(head -c4 </dev/urandom|xxd -p -u)" >"$1/etc/hostname"