mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-08-21 06:23:18 +00:00
Try in /opt
This commit is contained in:
@@ -65,13 +65,15 @@ fi
|
|||||||
dnf clean all
|
dnf clean all
|
||||||
|
|
||||||
# Download and install patched knockd
|
# Download and install patched knockd
|
||||||
curl -fsSL -o /tmp/knock.tar.gz https://github.com/Metalcape/knock/releases/download/0.8.1/knock-0.8.1-$TARGET.tar.gz
|
installPkg=/tmp/knock.tar.gz
|
||||||
# DEBUG
|
curl -fsSL -o $installPkg https://github.com/Metalcape/knock/releases/download/0.8.1/knock-0.8.1-$TARGET.tar.gz
|
||||||
ls -l /usr/local/bin
|
|
||||||
tar -xf /tmp/knock.tar.gz -C /usr/local/ && rm /tmp/knock.tar.gz
|
installDir=/opt/knockd
|
||||||
ln -s /usr/local/sbin/knockd /usr/sbin/knockd
|
mkdir $installDir
|
||||||
ls -l /usr/local/sbin/knockd
|
tar -xf $installPkg -C $installDir
|
||||||
setcap cap_net_raw=ep /usr/local/sbin/knockd
|
rm $installPkg
|
||||||
|
ln -s $installDir/sbin/knockd /usr/sbin/knockd
|
||||||
|
setcap cap_net_raw=ep $installDir/sbin/knockd
|
||||||
|
|
||||||
# Set git credentials globally
|
# Set git credentials globally
|
||||||
cat <<EOF >> /etc/gitconfig
|
cat <<EOF >> /etc/gitconfig
|
||||||
|
|||||||
Reference in New Issue
Block a user