Skip to content

Commit a2fc02d

Browse files
committed
Try in /opt
1 parent fa7cef7 commit a2fc02d

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

build/ol/install-packages.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,15 @@ fi
6565
dnf clean all
6666

6767
# Download and install patched knockd
68-
curl -fsSL -o /tmp/knock.tar.gz https://github.com/Metalcape/knock/releases/download/0.8.1/knock-0.8.1-$TARGET.tar.gz
69-
# DEBUG
70-
ls -l /usr/local/bin
71-
tar -xf /tmp/knock.tar.gz -C /usr/local/ && rm /tmp/knock.tar.gz
72-
ln -s /usr/local/sbin/knockd /usr/sbin/knockd
73-
ls -l /usr/local/sbin/knockd
74-
setcap cap_net_raw=ep /usr/local/sbin/knockd
68+
installPkg=/tmp/knock.tar.gz
69+
curl -fsSL -o $installPkg https://github.com/Metalcape/knock/releases/download/0.8.1/knock-0.8.1-$TARGET.tar.gz
70+
71+
installDir=/opt/knockd
72+
mkdir $installDir
73+
tar -xf $installPkg -C $installDir
74+
rm $installPkg
75+
ln -s $installDir/sbin/knockd /usr/sbin/knockd
76+
setcap cap_net_raw=ep $installDir/sbin/knockd
7577

7678
# Set git credentials globally
7779
cat <<EOF >> /etc/gitconfig

0 commit comments

Comments
 (0)