From 08e8f7cd6890d98915f8da38dcb325a1fa0631aa Mon Sep 17 00:00:00 2001 From: Aaron Dewes Date: Wed, 12 Aug 2020 07:40:46 +0200 Subject: [PATCH] Replace /home/umbrel with home/$FIRST_NAME (#79) --- stage2/00-sys-tweaks/01-run.sh | 2 ++ stage2/04-install-umbrel/01-run.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/stage2/00-sys-tweaks/01-run.sh b/stage2/00-sys-tweaks/01-run.sh index 3ed7ea8..84ec12a 100755 --- a/stage2/00-sys-tweaks/01-run.sh +++ b/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 diff --git a/stage2/04-install-umbrel/01-run.sh b/stage2/04-install-umbrel/01-run.sh index 434a36e..f6421bf 100755 --- a/stage2/04-install-umbrel/01-run.sh +++ b/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