Do you mind giving more information on how UniqueId.txt is created? does it start empty, is it created at first launch? at what point is it initialised? Is there a way to choose where the file gets created? (e.g in any other folder but the main folder)
Context -
I can't touch the file as cumulusmx wont populate it
I can't bind the file as target needs to have a relative path
I can't mount the file as it does not exist on first boot (so it creates a folder)
I would never ask for it to be disabled
I even tried
Code: Select all
# Check if UniqueId.txt exists and is not empty
if [ -s /opt/CumulusMX/UniqueId.txt ]; then
# UniqueId.txt exists and is not empty, so copy its contents to /opt/CumulusMX/config/UniqueId.txt
echo "Copying UniqueId.txt contents..."
cp -f /opt/CumulusMX/UniqueId.txt /opt/CumulusMX/config/UniqueId.txt
else
# UniqueId.txt not found or empty, copying back from host
echo "Copying UniqueId.txt back from host..."
cp -f /opt/CumulusMX/config/UniqueId.txt /opt/CumulusMX/UniqueId.txt
fi
thanks,
Ian.