diff --git a/rootfs/etc/cont-init.d/firefox.sh b/rootfs/etc/cont-init.d/firefox.sh index 94d7402..8498d5d 100755 --- a/rootfs/etc/cont-init.d/firefox.sh +++ b/rootfs/etc/cont-init.d/firefox.sh @@ -12,8 +12,10 @@ mkdir -p /config/downloads mkdir -p /config/log/firefox # Generate machine id. -log "generating machine-id..." -cat /proc/sys/kernel/random/uuid | tr -d '-' > /etc/machine-id +if [ ! -f /etc/machine-id ]; then + log "generating machine-id..." + cat /proc/sys/kernel/random/uuid | tr -d '-' > /etc/machine-id +fi # Verify the size of /dev/shm. SHM_SIZE_MB="$(df -m /dev/shm | tail -n 1 | tr -s ' ' | cut -d ' ' -f2)"