mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 00:20:38 -09:00
package/apache: fix checkpackage warnings in init script
Signed-off-by: Fiona Klute <fiona.klute@gmx.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
b11c90e145
commit
3862abb010
@@ -201,7 +201,6 @@ package/android-tools/0009-Fix-makefiles-for-out-of-tree-ext4_utils-build.patch
|
||||
package/android-tools/0010-adb-added-patch-for-openssl-1.1.0-compatibility.patch lib_patch.Upstream
|
||||
package/aoetools/0001-Change-shell-script-interpreter-from-bin-bash-to-bin.patch lib_patch.Upstream
|
||||
package/apache/0001-cross-compile.patch lib_patch.Upstream
|
||||
package/apache/S50apache Shellcheck lib_sysv.Indent lib_sysv.Variables
|
||||
package/apr-util/0001-remove-checkapr.patch lib_patch.Upstream
|
||||
package/apr/0001-sys-param-h.patch lib_patch.Upstream
|
||||
package/apr/0002-Revert-Backport-r1872164.-Fix-the-name-of-libtool-wh.patch lib_patch.Upstream
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
#!/bin/sh
|
||||
# shellcheck disable=SC2034 # checkpackage-required variable
|
||||
DAEMON="apache"
|
||||
|
||||
case "$1" in
|
||||
start|restart|graceful|graceful-stop|stop)
|
||||
apachectl -k $1
|
||||
;;
|
||||
reload)
|
||||
apachectl -k restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|restart|reload|graceful|graceful-stop|stop}"
|
||||
exit 1
|
||||
start|restart|graceful|graceful-stop|stop)
|
||||
apachectl -k "$1"
|
||||
;;
|
||||
reload)
|
||||
apachectl -k restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|restart|reload|graceful|graceful-stop|stop}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
|
||||
Reference in New Issue
Block a user