Skip to content

Commit

Permalink
Merge pull request #15 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 1.5.0
  • Loading branch information
andyone authored Aug 6, 2018
2 parents c6366ae + 73d9d78 commit 1fcc7c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 5 additions & 5 deletions SOURCES/webkaos-utils
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
APP="WEBKAOS Utils"

# Utility version
VER="1.4.2"
VER="1.5.0"

########################################################################################

Expand Down Expand Up @@ -220,7 +220,7 @@ genCSR() {
usage && doExit 0
fi

local host="$1"
local host="${1//./_}"

openssl req -new -newkey rsa:4096 -nodes -sha256 -keyout "${host}.key" -out "${host}.csr"
}
Expand Down Expand Up @@ -380,7 +380,7 @@ sigExitTrap() {
doExit() {
local ec="${1:-0}"

rm -f ${TMP_PATTERN//XXXXXXXXX/}*
rm -f ${TMP_PATTERN//X/}*

exit "$ec"
}
Expand Down Expand Up @@ -500,7 +500,7 @@ showArgWarn() {
exit 1
}

## ARGUMENTS PARSING 3 #################################################################
## ARGUMENTS PARSING 4 #################################################################

[[ $# -eq 0 ]] && main && exit $?

Expand Down Expand Up @@ -602,6 +602,6 @@ done
unset arg argn argm argk

# shellcheck disable=SC2015,SC2086
[[ -n "$KEEP_ARGS" ]] && main $argv || main ${argt:1:9999}
[[ -n "$KEEP_ARGS" ]] && main $argv || main ${argt:1}

########################################################################################
7 changes: 5 additions & 2 deletions webkaos-utils.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Summary: Helpers for working with webkaos server
Name: webkaos-utils
Version: 1.4.2
Version: 1.5.0
Release: 0%{?dist}
Group: Applications/System
License: EKOL
Expand All @@ -13,7 +13,7 @@ Source0: https://source.kaos.st/%{name}/%{name}-%{version}.tar.bz2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Requires: openssl
Requires: bash openssl

Provides: %{name} = %{version}-%{release}

Expand Down Expand Up @@ -47,6 +47,9 @@ rm -rf %{buildroot}
################################################################################

%changelog
* Mon Aug 06 2018 Anton Novojilov <[email protected]> - 1.5.0-0
- Added output name normalization for csr-gen command

* Wed Mar 14 2018 Anton Novojilov <[email protected]> - 1.4.2-0
- Fixed bug with cleaning temporary data

Expand Down

0 comments on commit 1fcc7c7

Please sign in to comment.