Merge pull request #425 from chewitt/machineid_dir

systemd: ensure /storage/.cache exists before writing machine-id
This commit is contained in:
MilhouseVH 2016-06-06 09:31:17 +01:00
commit f59ff67c76

View File

@ -36,6 +36,7 @@ fi
if [ -z "$MACHINEID" ]; then
MACHINEID=`echo $MAC_ADDRESS | md5sum | cut -f1 -d" "`
mkdir -p /storage/.cache
fi
echo "$MACHINEID" > /storage/.cache/machine-id