File: webadmin-restart-commands.patch

package info (click to toggle)
courier 1.4.1-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,168 kB
  • sloc: ansic: 128,314; cpp: 24,312; sh: 10,177; perl: 4,250; makefile: 3,398; sed: 16
file content (20 lines) | stat: -rw-r--r-- 894 bytes parent folder | download | duplicates (3)
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-08-25
Comment: Discussed at
 https://github.com/svarshavchik/courier/issues/63#issuecomment-3221586246

--- a/webadmin/Makefile.am
+++ b/webadmin/Makefile.am
@@ -38,7 +38,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