summaryrefslogtreecommitdiffstats
path: root/debian/samba.postinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:31:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:31:31 +0000
commit9fd5fa011a1be7535e77bb79160e02ae7551acce (patch)
tree3fec8b945fae11675bcc02282a28e40842c28e69 /debian/samba.postinst
parentReleasing progress-linux version 2:4.20.1+dfsg-2~progress7.99u1. (diff)
downloadsamba-9fd5fa011a1be7535e77bb79160e02ae7551acce.tar.xz
samba-9fd5fa011a1be7535e77bb79160e02ae7551acce.zip
Merging debian version 2:4.20.1+dfsg-3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/samba.postinst')
-rw-r--r--debian/samba.postinst17
1 files changed, 0 insertions, 17 deletions
diff --git a/debian/samba.postinst b/debian/samba.postinst
index ceb0b64..f15dfa5 100644
--- a/debian/samba.postinst
+++ b/debian/samba.postinst
@@ -2,23 +2,6 @@
set -e
-nmbd_error_handler() {
- if [ -d /sys/class/net/lo ] && ls /sys/class/net | grep -qv ^lo$; then
- # https://bugs.debian.org/893762
- echo 'WARNING: nmbd failed to start as there is no non-loopback interfaces available.'
- echo 'Either add an interface or set "disable netbios = yes" in smb.conf'
- return 0
- elif command -v ip > /dev/null && ip a show | grep '^[[:space:]]*inet ' | grep -vq ' lo$'; then
- # https://bugs.debian.org/859526
- echo 'WARNING: nmbd failed to start as there is no local IPv4 non-loopback interfaces available.'
- echo 'Either add an IPv4 address or set "disable netbios = yes" in smb.conf'
- return 0
- else
- echo 'ERROR: nmbd failed to start.'
- return 1 # caught by set -e
- fi
-}
-
# We generate several files during the postinst, and we don't want
# them to be readable only by root.
umask 022