From 05540ffc61eb9d1ad211813dbf5573e667f5c3c3 Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Wed, 26 Mar 2025 19:13:13 +0100 Subject: [PATCH] Update samba config for ogboot --- debian/ogboot.postinst | 7 +++---- etc/samba/smb-ogboot.conf | 10 ---------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/debian/ogboot.postinst b/debian/ogboot.postinst index 636a8b7..cc0072b 100755 --- a/debian/ogboot.postinst +++ b/debian/ogboot.postinst @@ -152,10 +152,9 @@ configure_nginx_and_fpm() { configure_samba(){ echo "Configurando Samba" - mkdir -p /etc/samba/opengnsys/ - cp /opt/opengnsys/ogboot/etc/samba/smb-ogboot.conf /etc/samba/opengnsys/ - sed -i "s|__OGBOOT_DIR__|$OGBOOT_ROOT|g" /etc/samba/opengnsys/smb-ogboot.conf - INCLUDE_LINE="include = /etc/samba/opengnsys/smb-ogboot.conf" + cp /opt/opengnsys/ogboot/etc/samba/smb-ogboot.conf /etc/samba/ + sed -i "s|__OGBOOTDIR__|$OGBOOT_ROOT|g" /etc/samba/smb-ogboot.conf + INCLUDE_LINE="include = /etc/samba/smb-ogboot.conf" if ! grep -q "$INCLUDE_LINE" /etc/samba/smb.conf; then echo "$INCLUDE_LINE" | sudo tee -a /etc/samba/smb.conf > /dev/null fi diff --git a/etc/samba/smb-ogboot.conf b/etc/samba/smb-ogboot.conf index 9849a97..9807528 100644 --- a/etc/samba/smb-ogboot.conf +++ b/etc/samba/smb-ogboot.conf @@ -4,13 +4,3 @@ writeable = no path = __OGBOOTDIR__/tftpboot guest ok = no - - -[oglog] - comment = OpenGnsys Log - browseable = no - writeable = yes - locking = no - path = __OGBOOTDIR__/client_log - guest ok = no -