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 package requirements on Alpine #113

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ if [[ -s /usr/local/sbin/zram-config ]] || [[ -s /usr/sbin/zram-config ]]; then
exit 1
fi

if [[ $OS == "alpine" ]] && ! [[ "$(apk info 2> /dev/null | grep -E '^(gcc|make|fts-dev|linux-headers|util-linux-misc|musl-dev)' | tr '\n' ' ')" == "fts-dev gcc make util-linux-misc musl-dev linux-headers " ]]; then
echo "Installing needed packages (gcc, make, fts-dev, linux-headers, util-linux-misc, musl-dev)"
apk add gcc make fts-dev linux-headers util-linux-misc musl-dev || exit 1
if [[ $OS == "alpine" ]] && ! [[ "$(apk info 2> /dev/null | grep -E '^(gcc|linux-headers|make|mount|musl-dev|musl-fts-dev|umount|util-linux-misc)' | sort | tr '\n' ' ')" == "gcc linux-headers make mount musl-dev musl-fts-dev umount util-linux-misc " ]]; then
echo "Installing needed packages (gcc, make, musl-fts-dev, linux-headers, util-linux-misc, musl-dev)"
apk add gcc linux-headers make mount musl-dev musl-fts-dev umount util-linux-misc || exit 1
elif ! dpkg -s 'gcc' 'make' 'libc6-dev' &> /dev/null; then
echo "Installing needed packages (gcc, make, libc6-dev)"
apt-get install --yes gcc make libc6-dev || exit 1
Expand Down
Loading