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
commitae1040fc8269348818484277d150a88132a97f1c (patch)
tree0d7a4fc4de3b65dbff3d692d57c02c2cbd9cf5d9 /debian/samba.postinst
parentAdding debian version 2:4.20.1+dfsg-2. (diff)
downloadsamba-ae1040fc8269348818484277d150a88132a97f1c.tar.xz
samba-ae1040fc8269348818484277d150a88132a97f1c.zip
Adding debian version 2:4.20.1+dfsg-3.debian/2%4.20.1+dfsg-3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-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