Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bluefin-cli-brew-firstrun.sh for no volume #16

Merged
merged 1 commit into from
Jan 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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