Skip to content

Minor patch for qreencode on Alpine #551

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

Open
wants to merge 1 commit into
base: master
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
7 changes: 2 additions & 5 deletions wireguard-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,7 @@ function installWireGuard() {
pacman -S --needed --noconfirm wireguard-tools qrencode
elif [[ ${OS} == 'alpine' ]]; then
apk update
apk add wireguard-tools iptables build-base libpng-dev
curl -O https://fukuchi.org/works/qrencode/qrencode-4.1.1.tar.gz
tar xf qrencode-4.1.1.tar.gz
(cd qrencode-4.1.1 || exit && ./configure && make && make install && ldconfig)
apk add wireguard-tools iptables libqrencode-tools
fi

# Make sure the directory exists (this does not seem the be the case on fedora)
Expand Down Expand Up @@ -513,7 +510,7 @@ function uninstallWg() {
elif [[ ${OS} == 'alpine' ]]; then
(cd qrencode-4.1.1 || exit && make uninstall)
rm -rf qrencode-* || exit
apk del wireguard-tools build-base libpng-dev
apk del wireguard-tools libqrencode libqrencode-tools
fi

rm -rf /etc/wireguard
Expand Down
Loading