Skip to content

Commit

Permalink
fix: bluefin-cli-brew-firstrun.sh for no volume
Browse files Browse the repository at this point in the history
  • Loading branch information
m2Giles authored Jan 20, 2024
1 parent f68487c commit 42dba98
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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
fi

0 comments on commit 42dba98

Please sign in to comment.