Skip to content

Commit 5066411

Browse files
authored
Merge pull request #83 from essentialkaos/develop
Version 1.17.0.1
2 parents 6cb24fa + 9c273d8 commit 5066411

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

SOURCES/webkaos.init

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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-
10098
check() {
10199
kv.showProcessMessage "Checking ${kv[prog_name]} config"
102100

@@ -234,6 +232,8 @@ reload() {
234232
###############################################################################
235233

236234
preStartServiceHandler() {
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

259261
startServiceHandler() {
@@ -364,6 +366,4 @@ getFilePerms() {
364366

365367
###############################################################################
366368

367-
prepare
368-
369369
kv.go $@

webkaos.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
Summary: Superb high performance web server
5757
Name: webkaos
5858
Version: 1.17.0
59-
Release: 0%{?dist}
59+
Release: 1%{?dist}
6060
License: 2-clause BSD-like license
6161
Group: System Environment/Daemons
6262
URL: 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

0 commit comments

Comments
 (0)