From 7ea7572766e0eaca3bedd247d03fb6caee6c526d Mon Sep 17 00:00:00 2001 From: smizrahi Date: Mon, 27 Feb 2023 11:22:39 +0100 Subject: [PATCH] fix(packaging): Add usr/share/doc/sogo/ for packaging. Fixes partially #5698 --- packaging/debian/sogo.install | 3 +-- packaging/debian/sogo.postinst | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packaging/debian/sogo.install b/packaging/debian/sogo.install index 01c75dc39..0bc04fd49 100644 --- a/packaging/debian/sogo.install +++ b/packaging/debian/sogo.install @@ -24,5 +24,4 @@ usr/lib/GNUstep/SOGo/Mailer.SOGo usr/lib/GNUstep/SOGo/MailerUI.SOGo usr/lib/GNUstep/SOGo/MainUI.SOGo usr/lib/GNUstep/SOGo/PreferencesUI.SOGo -usr/lib/GNUstep/SOGo/SchedulerUI.SOGo -usr/share/doc/sogo/* \ No newline at end of file +usr/lib/GNUstep/SOGo/SchedulerUI.SOGo \ No newline at end of file diff --git a/packaging/debian/sogo.postinst b/packaging/debian/sogo.postinst index 8227c196a..6abc6c022 100644 --- a/packaging/debian/sogo.postinst +++ b/packaging/debian/sogo.postinst @@ -25,7 +25,10 @@ case "$1" in # (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 + if [ -d "/usr/share/doc/sogo" ] + then + chmod a+x /usr/share/doc/sogo/*.sh + fi # Enforce owner+mode on configuration chmod 750 /etc/sogo