Skip to content

Commit 95f0d4f

Browse files
authored
Alpine: use qrencode from libqrencode-tools package instead of building from source (#551)
1 parent cae93aa commit 95f0d4f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

wireguard-install.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,7 @@ function installWireGuard() {
225225
pacman -S --needed --noconfirm wireguard-tools qrencode
226226
elif [[ ${OS} == 'alpine' ]]; then
227227
apk update
228-
apk add wireguard-tools iptables build-base libpng-dev
229-
curl -O https://fukuchi.org/works/qrencode/qrencode-4.1.1.tar.gz
230-
tar xf qrencode-4.1.1.tar.gz
231-
(cd qrencode-4.1.1 || exit && ./configure && make && make install && ldconfig)
228+
apk add wireguard-tools iptables libqrencode-tools
232229
fi
233230
234231
# Make sure the directory exists (this does not seem the be the case on fedora)
@@ -513,7 +510,7 @@ function uninstallWg() {
513510
elif [[ ${OS} == 'alpine' ]]; then
514511
(cd qrencode-4.1.1 || exit && make uninstall)
515512
rm -rf qrencode-* || exit
516-
apk del wireguard-tools build-base libpng-dev
513+
apk del wireguard-tools libqrencode libqrencode-tools
517514
fi
518515
519516
rm -rf /etc/wireguard

0 commit comments

Comments
 (0)