Skip to content

Commit

Permalink
fix(brew.sh): Move /home/linuxbrew to share/factory explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeglius committed Feb 7, 2025
1 parent 4fd85bd commit 86312dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions containerfile_scripts/brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ fi
/tmp/brew-install &&
rm /tmp/brew-install
} || die "Something went wrong running Homebrew install.sh"
sync /var/home/linuxbrew
FILES_TO_FACTORY+=(/var/home/linuxbrew)
sync /home/linuxbrew

# Write /etc/profile.d/brew.sh
writefile /etc/profile.d/brew.sh <<'EOF'
Expand Down Expand Up @@ -140,7 +139,8 @@ $(
EOF

# Copy files to /usr/share/factory
mkdir -p /usr/share/factory
mkdir -p /usr/share/factory/var/home
cp --parents -ar -- "${FILES_TO_FACTORY[@]}" /usr/share/factory
cp -ar -- /home/linuxbrew /usr/share/factory/var/home

#endregion Body

0 comments on commit 86312dd

Please sign in to comment.