File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ kv.disableOutputRedirect "start" "pre"
8181
8282# ##############################################################################
8383
84- prepare () {
84+ checkEnv () {
8585 local has_errors=" "
8686
8787 [[ ! -x $binary ]] && has_errors=true && kv.error " <BINARY> must be executable file"
@@ -95,8 +95,6 @@ prepare() {
9595 [[ $has_errors ]] && kv.exit $ACTION_ERROR
9696}
9797
98- # ##############################################################################
99-
10098check () {
10199 kv.showProcessMessage " Checking ${kv[prog_name]} config"
102100
@@ -234,6 +232,8 @@ reload() {
234232# ##############################################################################
235233
236234preStartServiceHandler () {
235+ checkEnv
236+
237237 if isDHPGenRequired ; then
238238 gendhp
239239 fi
@@ -254,6 +254,8 @@ preStartServiceHandler() {
254254 kv.warn " File $ssl_dir /$file have weak permissions. Please change permissions to 400 or 600."
255255 fi
256256 done
257+
258+ return $ACTION_OK
257259}
258260
259261startServiceHandler () {
@@ -364,6 +366,4 @@ getFilePerms() {
364366
365367# ##############################################################################
366368
367- prepare
368-
369369kv.go $@
Original file line number Diff line number Diff line change 5656Summary: Superb high performance web server
5757Name: webkaos
5858Version: 1.17.0
59- Release: 0 %{?dist }
59+ Release: 1 %{?dist }
6060License: 2-clause BSD-like license
6161Group: System Environment/Daemons
6262URL: https://github.com/essentialkaos/webkaos
@@ -573,6 +573,9 @@ rm -rf %{buildroot}
573573################################################################################
574574
575575%changelog
576+ * Wed Jun 12 2019 Anton Novojilov <andy@essentialkaos.com> - 1.17.0-1
577+ - Init script improvements
578+
576579* Tue May 21 2019 Anton Novojilov <andy@essentialkaos.com> - 1.17.0-0
577580- Nginx updated to 1.17.0
578581- Improved styles for error and index pages
You can’t perform that action at this time.
0 commit comments