mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
samba: call smbd-config from samba-config
This commit is contained in:
parent
d4af5aca17
commit
c8809e92b9
@ -142,6 +142,8 @@ post_makeinstall_target() {
|
||||
|
||||
mkdir -p $INSTALL/usr/lib/samba
|
||||
cp $PKG_DIR/scripts/samba-config $INSTALL/usr/lib/samba
|
||||
cp $PKG_DIR/scripts/smbd-config $INSTALL/usr/lib/samba
|
||||
cp $PKG_DIR/scripts/samba-autoshare $INSTALL/usr/lib/samba
|
||||
|
||||
if find_file_path config/smb.conf; then
|
||||
mkdir -p $INSTALL/etc/samba
|
||||
@ -166,10 +168,6 @@ post_makeinstall_target() {
|
||||
|
||||
mkdir -p $INSTALL/usr/share/services
|
||||
cp -P $PKG_DIR/default.d/*.conf $INSTALL/usr/share/services
|
||||
|
||||
mkdir -p $INSTALL/usr/lib/samba
|
||||
cp $PKG_DIR/scripts/samba-autoshare $INSTALL/usr/lib/samba
|
||||
cp $PKG_DIR/scripts/smbd-config $INSTALL/usr/lib/samba
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,6 @@ if [ -f /storage/.cache/services/samba.conf ]; then
|
||||
|
||||
if [ "$SAMBA_AUTOSHARE" == "true" ] ; then
|
||||
/usr/lib/samba/samba-config
|
||||
/usr/lib/samba/smbd-config
|
||||
[ -f /run/samba/smbd.pid ] && pkill -HUP smbd
|
||||
fi
|
||||
fi
|
||||
|
@ -46,3 +46,10 @@ mkdir -p $(dirname $SMB_CONF)
|
||||
else
|
||||
cp $SMB_DEFCONF $SMB_CONF
|
||||
fi
|
||||
|
||||
# Generate smb.conf, unless disabled
|
||||
if [ ! -f /storage/.cache/services/samba.disabled ]; then
|
||||
/usr/lib/samba/smbd-config
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
@ -9,7 +9,6 @@ Wants=samba-config.service
|
||||
Type=forking
|
||||
PIDFile=/run/samba/smbd.pid
|
||||
LimitNOFILE=16384
|
||||
ExecStartPre=/usr/lib/samba/smbd-config
|
||||
ExecStart=/usr/sbin/smbd
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
TimeoutStopSec=1s
|
||||
|
Loading…
x
Reference in New Issue
Block a user