fireinfo: generate pakfire uuid if not present.

This commit is contained in:
Arne Fitzenreiter
2011-01-14 10:39:23 +01:00
parent 9e9fca31e6
commit 59c524d029

View File

@@ -19,6 +19,11 @@ case "${1}" in
start)
mkdir -p /var/ipfire/fireinfo 2>/dev/null
# Generate Pakfire uuid if not present
if [ ! -e /opt/pakfire/db/uuid ]; then
uuidgen > /opt/pakfire/db/uuid
fi
sendprofile --public-id > /var/ipfire/fireinfo/public_id
sendprofile --dump > /var/ipfire/fireinfo/profile
;;