From 9dedc8d51306eff129fcce5eec16cd9a158e1641 Mon Sep 17 00:00:00 2001 From: lgromero Date: Mon, 30 Jun 2025 11:42:06 +0200 Subject: [PATCH] refs #2355 deletes obsolete samba directory and changes postinstall to use samba-ogboot.tmpl --- debian/ogboot.postinst | 2 +- etc/samba/smb-ogboot.conf | 6 ------ etc/samba/smb-ogclient.conf | 7 ------- 3 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 etc/samba/smb-ogboot.conf delete mode 100644 etc/samba/smb-ogclient.conf diff --git a/debian/ogboot.postinst b/debian/ogboot.postinst index 345e02f..be302a2 100755 --- a/debian/ogboot.postinst +++ b/debian/ogboot.postinst @@ -153,7 +153,7 @@ configure_nginx_and_fpm() { configure_samba(){ echo "Configurando Samba" - cp /opt/opengnsys/ogboot/etc/samba/smb-ogboot.conf /etc/samba/ + cp /opt/opengnsys/ogboot/etc/smb-ogboot.conf.tmpl /etc/samba/smb-ogboot.conf 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 diff --git a/etc/samba/smb-ogboot.conf b/etc/samba/smb-ogboot.conf deleted file mode 100644 index 9807528..0000000 --- a/etc/samba/smb-ogboot.conf +++ /dev/null @@ -1,6 +0,0 @@ -[tftpboot] - comment = OpenGnsys init files - browseable = no - writeable = no - path = __OGBOOTDIR__/tftpboot - guest ok = no diff --git a/etc/samba/smb-ogclient.conf b/etc/samba/smb-ogclient.conf deleted file mode 100644 index 8eee2dd..0000000 --- a/etc/samba/smb-ogclient.conf +++ /dev/null @@ -1,7 +0,0 @@ -[ogclient] - comment = OpenGnsys Client - browseable = no - writeable = no - locking = no - path = __OGBOOTDIR__/client - guest ok = no \ No newline at end of file