File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 6565dnf 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
7779cat << EOF >> /etc/gitconfig
You can’t perform that action at this time.
0 commit comments