mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-24 09:52:58 +02:00
fireinfo: generate pakfire uuid if not present.
This commit is contained in:
@@ -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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user