From 42dba98f773dbce8f635f4795fbcc8f71766831c Mon Sep 17 00:00:00 2001 From: m2Giles <69128853+m2Giles@users.noreply.github.com> Date: Sat, 20 Jan 2024 14:22:22 -0500 Subject: [PATCH] fix: bluefin-cli-brew-firstrun.sh for no volume --- .../files/etc/profile.d/bluefin-cli-brew-firstrun.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/toolboxes/bluefin-cli/files/etc/profile.d/bluefin-cli-brew-firstrun.sh b/toolboxes/bluefin-cli/files/etc/profile.d/bluefin-cli-brew-firstrun.sh index f7ccb30..5e5a632 100644 --- a/toolboxes/bluefin-cli/files/etc/profile.d/bluefin-cli-brew-firstrun.sh +++ b/toolboxes/bluefin-cli/files/etc/profile.d/bluefin-cli-brew-firstrun.sh @@ -1,12 +1,14 @@ if test "$(id -u)" -gt "0" && test ! -f /etc/linuxbrew.firstrun; then echo "First Run Setup" - if test -d /home/linuxbrew; then + if test ! -d /home/linuxbrew; then + mv /home/homebrew /home/linuxbrew + else echo "Getting newest repo version of brew" su-exec root cp -R /home/homebrew/.linuxbrew /home/linuxbrew/ - echo "Making sure linuxbrew is owned by ${USER}" - su-exec root chown -R $UID /home/linuxbrew fi + echo "Making sure linuxbrew is owned by ${USER}" + su-exec root chown -R $UID /home/linuxbrew echo "Setting up sudo for ${USER}" echo "#${UID} ALL = (root) NOPASSWD:ALL" | su-exec root tee -a /etc/sudoers > /dev/null su-exec root touch /etc/linuxbrew.firstrun -fi \ No newline at end of file +fi