summaryrefslogtreecommitdiff
path: root/package/samba/files
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-11-28 01:46:19 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2022-11-28 08:27:11 +0100
commitdc02c77e1dd2e5194c3912b8dc41f6c4b3f5f2c7 (patch)
tree7269d2de7bef47ebe8e0893c4ab1aa94d4e23552 /package/samba/files
parent67ca3f26f710c58a1196f1ff11eef639e9d4fa27 (diff)
package: samba: Avoid creating sockets in /etc/
Otherwise cfgfs will complain. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'package/samba/files')
-rw-r--r--package/samba/files/samba.init5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/samba/files/samba.init b/package/samba/files/samba.init
index 21b983530..8b9e7e375 100644
--- a/package/samba/files/samba.init
+++ b/package/samba/files/samba.init
@@ -11,12 +11,13 @@ autostart)
exec sh $0 start
;;
start)
- [ -d /var/lib/samba ] || mkdir -p /var/lib/samba
+ [ -d /var/lib/samba/msg.sock ] || mkdir -p /var/lib/samba/msg.sock
[ -d /var/run/samba ] || mkdir -p /var/run/samba
[ -d /var/log/samba ] || mkdir -p /var/log/samba
[ -d /var/cache/samba ] || mkdir -p /var/cache/samba
[ -d /var/lock/samba ] || mkdir -p /var/lock/samba
- /usr/sbin/nmbd -D
+ chmod 700 /var/lib/samba/msg.sock
+ /usr/sbin/nmbd -D
/usr/sbin/smbd -D
;;
stop)