Improve help output with latest changes from sequencer

This commit is contained in:
2022-01-23 23:06:46 +01:00
parent e641373a57
commit 6dd40bc6c2
12 changed files with 80 additions and 83 deletions

View File

@@ -78,8 +78,8 @@ step_4() {
}
step_6_info() {
echo "Create postfixadmin fetchmail systemd timer and reduce syslos entries"
echoinfo "Needed to started after mysql service"
echo "Create postfixadmin fetchmail systemd timer and reduce syslog entries"
echoinfo "Needs to start after the mysql service"
}
step_6_alias() { ALIAS="timer"; }
step_6() {
@@ -143,7 +143,7 @@ fetchmailRsyslogLoc="/etc/rsyslog.d/30-fetchmail.conf"
fetchmailRsyslog="if \$programname == 'fetchmail' or \$programname == 'fetchmail-all' then $fetchmailLogLoc
& stop"
step_18_info() { echo "Check for updates"; }
step_18_info() { echoinfoArgs "[NEW VERSION]"; echo "Check for updates"; }
step_18_alias() { ALIAS="updatecheck"; }
step_18() {
shift
@@ -167,7 +167,8 @@ step_18() {
step_20_info() {
echo -n "Create a backup [POSTFIXADMIN SRV ROOT]"
echoinfoArgs "[POSTFIXADMIN SRV ROOT]"
echo -n "Create a backup"
if [ $CONFIG -ne 0 ] ; then
echo " at $PFA_BACKUP"
else
@@ -200,16 +201,18 @@ step_20() {
}
step_22_info() {
echoinfoArgs "[CUSTOM VERSION]"
shift
if [ -z $1 ] ; then
echo -n "Get latest version from github"
if [ $CONTEXT_HELP -eq 0 ] ; then
echo ": $(curl --silent "$latestUrl" | grep -Po '"tag_name": "postfixadmin-\K.*?(?=")')"
if [ $CONTEXT_EXE -ne 0 ]; then
echoinfo -n "Upgrade to version "
if [ -z "$1" ]; then
echo -n "$(curl --silent "$latestUrl" | grep -Po '"tag_name": "postfixadmin-\K.*?(?=")')"
else
echo " [CUSTOM VERSION]"
echo -n "$1"
fi
echo " from github"
else
echo "Get version $1 from github"
echo "Upgrade to latest or a custom version from github"
fi
}
step_22_alias() { ALIAS="upgrade"; }
@@ -311,7 +314,8 @@ step_23() {
}
step_100_info() {
echo "$toolName client script [OPTIONS]"
echoinfoArgs "[OPTIONS]"
echo "Execute $toolName client script"
echoinfo "[OPTIONS] are passed on to $toolName-cli unmodified"
}
step_100_alias() { ALIAS="cli"; }
@@ -320,5 +324,5 @@ step_100() {
exe ${PFA_SRV_LOC}/scripts/$toolName-cli $@
}
VERSION_SEQREV=11
VERSION_SEQREV=14
. /usr/local/bin/sequencer.sh