Browse Source

Replace /home/umbrel with home/$FIRST_NAME (#79)

swap
Aaron Dewes 5 years ago
committed by GitHub
parent
commit
08e8f7cd68
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      stage2/00-sys-tweaks/01-run.sh
  2. 2
      stage2/04-install-umbrel/01-run.sh

2
stage2/00-sys-tweaks/01-run.sh

@ -23,6 +23,8 @@ else
systemctl disable ssh
fi
systemctl enable regenerate_ssh_host_keys
sed -i -e "s/\/home\/umbrel/\/home\/${FIRST_USER_NAME}/g" /etc/rc.local
EOF
if [ ! -d $ROOTFS_DIR/home/statuses ]; then

2
stage2/04-install-umbrel/01-run.sh

@ -27,6 +27,8 @@ mkdir /home/${FIRST_USER_NAME}/umbrel
cd /home/${FIRST_USER_NAME}/umbrel
curl -L https://github.com/getumbrel/umbrel/archive/v${UMBREL_VERSION}.tar.gz | tar -xz --strip-components=1
chown -R ${FIRST_USER_NAME}:${FIRST_USER_NAME} /home/${FIRST_USER_NAME}
sed -i -e "s/\/home\/umbrel/\/home\/${FIRST_USER_NAME}/g" scripts/umbrel-os/umbrel-details
sed -i -e "s/\/home\/umbrel/\/home\/${FIRST_USER_NAME}/g" scripts/umbrel-os/services/umbrel-connection-details.service
EOF
# Bundle Umbrel's Docker images

Loading…
Cancel
Save