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 -