From 57fc2082b27ad585d22cd2fca9f1fec503fadc47 Mon Sep 17 00:00:00 2001 From: Patrice Levesque Date: Mon, 11 Apr 2016 11:28:01 -0400 Subject: [PATCH] Make example scripts in documentation executable. Addresses bug #3053 at http://sogo.nu/bugs/view.php?id=3053 --- packaging/debian/sogo.postinst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packaging/debian/sogo.postinst b/packaging/debian/sogo.postinst index 82cfa7d4e..3b8bf7264 100644 --- a/packaging/debian/sogo.postinst +++ b/packaging/debian/sogo.postinst @@ -21,6 +21,12 @@ case "$1" in # update timestamp on imgs,css,js to let apache know the files changed find /usr/lib/GNUstep/SOGo/WebServerResources -exec touch {} \; + # Make example scripts in /usr/share/doc/sogo/ executable + # (they do not really belong there, we are violating Debian + # packaging guidelines, but OTOH moving these files now would + # break lots of setups) + chmod a+x /usr/share/doc/sogo/*.sh + # Enforce owner+mode on configuration chmod 750 /etc/sogo chown root:sogo /etc/sogo