mirror of
https://github.com/woodchen-ink/docker-firefox.git
synced 2025-07-18 13:52:02 +08:00
Generate machine-id only if not already present.
This commit is contained in:
parent
0137a0e0b2
commit
db0d52d785
@ -12,8 +12,10 @@ mkdir -p /config/downloads
|
|||||||
mkdir -p /config/log/firefox
|
mkdir -p /config/log/firefox
|
||||||
|
|
||||||
# Generate machine id.
|
# Generate machine id.
|
||||||
log "generating machine-id..."
|
if [ ! -f /etc/machine-id ]; then
|
||||||
cat /proc/sys/kernel/random/uuid | tr -d '-' > /etc/machine-id
|
log "generating machine-id..."
|
||||||
|
cat /proc/sys/kernel/random/uuid | tr -d '-' > /etc/machine-id
|
||||||
|
fi
|
||||||
|
|
||||||
# Verify the size of /dev/shm.
|
# Verify the size of /dev/shm.
|
||||||
SHM_SIZE_MB="$(df -m /dev/shm | tail -n 1 | tr -s ' ' | cut -d ' ' -f2)"
|
SHM_SIZE_MB="$(df -m /dev/shm | tail -n 1 | tr -s ' ' | cut -d ' ' -f2)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user