Browse Source

Set permissions for status files

master
nolim1t 5 years ago
parent
commit
2ef24ee2fc
No known key found for this signature in database GPG Key ID: F6287B82CC84BCBD
  1. 4
      stage2/01-sys-tweaks/files/rc.local

4
stage2/01-sys-tweaks/files/rc.local

@ -21,7 +21,7 @@ fi
if [ ! -d /home/umbrel/statuses ]; then if [ ! -d /home/umbrel/statuses ]; then
mkdir -p /home/umbrel/statuses mkdir -p /home/umbrel/statuses
# Ensure its writable by all # Ensure its writable by all
chown umbrel.umbrel /home/umbrel/statuses chown -R umbrel.umbrel /home/umbrel/statuses
chmod 777 /home/umbrel/statuses chmod 777 /home/umbrel/statuses
fi fi
@ -32,6 +32,7 @@ if [ ! -f /home/umbrel/statuses/disk-partitioned ]; then
echo "This is a placeholder - so please put in /home/umbrel/statuses/disk-partitioned and run /etc/rc.local again" echo "This is a placeholder - so please put in /home/umbrel/statuses/disk-partitioned and run /etc/rc.local again"
# Uncomment when ready # Uncomment when ready
#touch /home/umbrel/statuses/disk-partitioned #touch /home/umbrel/statuses/disk-partitioned
#chown -R umbrel.umbrel /home/umbrel/statuses/disk-partitioned
else else
echo "Could not find partition tool - some steps might be skipped" echo "Could not find partition tool - some steps might be skipped"
fi fi
@ -52,6 +53,7 @@ if [ ! -f /home/umbrel/statuses/service-configured ]; then
# Making this as done so we don't go through updates again # Making this as done so we don't go through updates again
touch /home/umbrel/statuses/service-configured touch /home/umbrel/statuses/service-configured
chown -R umbrel.umbrel /home/umbrel/statuses/service-configured
fi fi
# Next stage, check if service-configured # Next stage, check if service-configured

Loading…
Cancel
Save