File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments