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