evomaintenance: upstream release 23.10.1
This commit is contained in:
parent
f644f8c449
commit
b2438dde80
|
@ -74,7 +74,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
* base: dump-server-state.sh upstream release 23.06
|
* base: dump-server-state.sh upstream release 23.06
|
||||||
* evocheck: upstream release 23.06
|
* evocheck: upstream release 23.06
|
||||||
* base: add evobsd_alias_fwupdate variable and make kshrc file a template so we can set or not a fw_update alias to servers that need it
|
* base: add evobsd_alias_fwupdate variable and make kshrc file a template so we can set or not a fw_update alias to servers that need it
|
||||||
* evomaintenance: upstream release 23.10
|
* evomaintenance: upstream release 23.10.1
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
VERSION="23.10"
|
VERSION="23.10.1"
|
||||||
|
|
||||||
show_version() {
|
show_version() {
|
||||||
cat <<END
|
cat <<END
|
||||||
|
@ -122,8 +122,8 @@ get_now() {
|
||||||
}
|
}
|
||||||
|
|
||||||
get_user() {
|
get_user() {
|
||||||
if [ -n "${USER}" ]; then
|
if [ -n "${FORCE_USER}" ]; then
|
||||||
echo "${USER}"
|
echo "${FORCE_USER}"
|
||||||
else
|
else
|
||||||
logname
|
logname
|
||||||
fi
|
fi
|
||||||
|
@ -399,7 +399,7 @@ AUTO=${AUTO:-"0"}
|
||||||
EVOCHECK=${EVOCHECK:-"0"}
|
EVOCHECK=${EVOCHECK:-"0"}
|
||||||
GIT_STATUS_MAX_LINES=${GIT_STATUS_MAX_LINES:-20}
|
GIT_STATUS_MAX_LINES=${GIT_STATUS_MAX_LINES:-20}
|
||||||
API_ENDPOINT=${API_ENDPOINT:-""}
|
API_ENDPOINT=${API_ENDPOINT:-""}
|
||||||
USER=${USER:-""}
|
FORCE_USER=${FORCE_USER:-""}
|
||||||
|
|
||||||
# initialize variables
|
# initialize variables
|
||||||
MESSAGE=""
|
MESSAGE=""
|
||||||
|
@ -481,12 +481,12 @@ while :; do
|
||||||
# Deprecated, backward compatibility
|
# Deprecated, backward compatibility
|
||||||
# author change as autosysadmin
|
# author change as autosysadmin
|
||||||
printf 'WARNING: "--autosysadmin" is deprecated, use "--user autosysadmin".\n' >&2
|
printf 'WARNING: "--autosysadmin" is deprecated, use "--user autosysadmin".\n' >&2
|
||||||
USER="autosysadmin"
|
FORCE_USER="autosysadmin"
|
||||||
;;
|
;;
|
||||||
-u|--user)
|
-u|--user)
|
||||||
# user options, with value speparated by space
|
# user options, with value speparated by space
|
||||||
if [ -n "$2" ]; then
|
if [ -n "$2" ]; then
|
||||||
USER=$2
|
FORCE_USER=$2
|
||||||
shift
|
shift
|
||||||
else
|
else
|
||||||
printf 'ERROR: "--user" requires a non-empty option argument.\n' >&2
|
printf 'ERROR: "--user" requires a non-empty option argument.\n' >&2
|
||||||
|
@ -495,7 +495,7 @@ while :; do
|
||||||
;;
|
;;
|
||||||
--user=?*)
|
--user=?*)
|
||||||
# message options, with value speparated by =
|
# message options, with value speparated by =
|
||||||
USER=${1#*=}
|
FORCE_USER=${1#*=}
|
||||||
;;
|
;;
|
||||||
--user=)
|
--user=)
|
||||||
# message options, without value
|
# message options, without value
|
||||||
|
|
Loading…
Reference in a new issue