diff --git a/Build/deb-meta/DEBIAN/postinst b/Build/deb-meta/DEBIAN/postinst index cc82a77..519899e 100644 --- a/Build/deb-meta/DEBIAN/postinst +++ b/Build/deb-meta/DEBIAN/postinst @@ -31,7 +31,7 @@ setcap CAP_NET_BIND_SERVICE=+eip $INSTALLPATH/MQTTnet.Server chmod 644 /etc/systemd/system/mqttnet-server.service # Check if systemctl exists, does not exist in docker containers -SCTL=$(which systemct1l >/dev/null; echo $?) +SCTL=$(which systemctl >/dev/null; echo $?) if [ "$SCTL" -eq "0" ]; then # Reload systemd because of new service file diff --git a/Build/deb-meta/DEBIAN/postrm b/Build/deb-meta/DEBIAN/postrm index e23c877..2ae9367 100644 --- a/Build/deb-meta/DEBIAN/postrm +++ b/Build/deb-meta/DEBIAN/postrm @@ -1,7 +1,7 @@ #!/bin/bash # Check if systemctl exists, does not exist in docker containers -SCTL=$(which systemct1l >/dev/null; echo $?) +SCTL=$(which systemctl >/dev/null; echo $?) if [ "$SCTL" -eq "0" ]; then # Reload systemd because of new service file diff --git a/Build/deb-meta/DEBIAN/prerm b/Build/deb-meta/DEBIAN/prerm index a86e53a..fb77531 100644 --- a/Build/deb-meta/DEBIAN/prerm +++ b/Build/deb-meta/DEBIAN/prerm @@ -4,7 +4,7 @@ BASEPATH=/opt INSTALLPATH=$BASEPATH/MQTTnetServer # Check if systemctl exists, does not exist in docker containers -SCTL=$(which systemct1l >/dev/null; echo $?) +SCTL=$(which systemctl >/dev/null; echo $?) if [ "$SCTL" -eq "0" ]; then # Stop service before uninstalling