File: webadmin-restart-commands.patch

package info (click to toggle)
courier 1.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 54,448 kB
  • sloc: ansic: 130,619; cpp: 33,255; sh: 10,437; perl: 4,250; makefile: 3,447; sed: 39
file content (20 lines) | stat: -rw-r--r-- 894 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Use the init-system agnostic "service" command for the webadmin
 restart commands.
From: Soren Stoutner <soren@debian.org>
Forwarded: not-needed
Last-Update: 2025-10-27
Comment: Discussed at
 https://github.com/svarshavchik/courier/issues/63#issuecomment-3221586246

--- a/webadmin/Makefile.am
+++ b/webadmin/Makefile.am
@@ -32,7 +32,8 @@ install-data-hook:
 	chmod 755 $(DESTDIR)$(webadmindir)
 	-$(mkinstalldirs) $(DESTDIR)$(sysconfdir)/webadmin
 	chmod 700 $(DESTDIR)$(sysconfdir)/webadmin
-	echo '$(authdaemond) restart' >>$(DESTDIR)$(sysconfdir)/webadmin/restartauthcmd
+	echo 'service courier restart &' >>$(DESTDIR)$(sysconfdir)/webadmin/restartcmd
+	echo 'service courier-authdaemon restart' >>$(DESTDIR)$(sysconfdir)/webadmin/restartauthcmd
 	-chown @mailuser@ $(DESTDIR)$(sysconfdir)/webadmin/restartcmd
 	-chgrp @mailgroup@ $(DESTDIR)$(sysconfdir)/webadmin/restartcmd