Skip to content

Commit

Permalink
Merge pull request #16 from ublue-os/m2Giles-patch-1
Browse files Browse the repository at this point in the history
fix: bluefin-cli-brew-firstrun.sh for no volume
  • Loading branch information
m2Giles authored Jan 20, 2024
2 parents f68487c + 42dba98 commit 7398a84
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 7398a84

Please sign in to comment.