[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] Remove leftover Samba files via debian/debian-edu-config.postinst

Wolfgang Schweer gitlab at salsa.debian.org
Sat Oct 17 15:25:30 BST 2020



Wolfgang Schweer pushed to branch master at Debian Edu / debian-edu-config


Commits:
318cd56a by Wolfgang Schweer at 2020-10-17T16:23:21+02:00
Remove leftover Samba files via debian/debian-edu-config.postinst

Signed-off-by: Wolfgang Schweer <wschweer at arcor.de>

- - - - -


2 changed files:

- debian/changelog
- debian/debian-edu-config.postinst


Changes:

=====================================
debian/changelog
=====================================
@@ -19,6 +19,7 @@ debian-edu-config (2.11.32) UNRELEASED; urgency=medium
   * Move from deprecated, unusable Samba NT4-style PDC role to standalone server
     one to be compatible with OpenLDAP, MIT Kerberos and GOsa²:
     - Drop all domain related files.
+    - Add code to debian/debian-edu-config.postinst to get those files removed.
     - Adjust etc/samba/smb-debian-edu.conf accordingly (also with support for
       non-root user usershares and override file included).
     - Add share/debian-edu-config/smb.conf.edu-site as override template file.


=====================================
debian/debian-edu-config.postinst
=====================================
@@ -207,6 +207,13 @@ configure)
         rm -rf /etc/ltspfs
         rm -f /etc/ltsp/ltsp-build-client.conf 
     fi
+
+    # Remove leftover files from Samba NT4-style PDC configuration
+    if dpkg --compare-versions "$2" le "2.11.32" ; then
+        rm -rf /etc/samba/netlogon
+        rm -f /etc/samba/samba-domain-policy.ldif
+        rm -f /etc/samba/smbaddclient.sh
+    fi
     ;;
 esac
 



View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/318cd56ac470b7c2b3cb2ed90de59eb541c86a12

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/318cd56ac470b7c2b3cb2ed90de59eb541c86a12
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20201017/e424d87b/attachment-0001.html>


More information about the debian-edu-commits mailing list