Rework step options handling

This commit is contained in:
2022-12-12 11:16:26 +01:00
parent 44ae559918
commit 1f431daa16
30 changed files with 120 additions and 120 deletions

View File

@@ -6,7 +6,7 @@ toolDeps=$toolName
sq_aptOpt=
#sq_config=0
step_config() {
seq_config() {
#if initSeqConfig "${seq_configName:?}" "${seq_configTemplate:?} ; then
# sq_config=1
#else
@@ -36,6 +36,11 @@ step_2() {
exe ufw enable
}
step_3_info() { echo "Info"; }
#step_3_alias() { echo "alias"; }
step_3_options() { echo "[]"; }
step_3() { : ; }
step_20_info() { echo "Enable mail server essentials"; }
step_20_alias() { echo "mailserver"; }
step_20() {
@@ -47,7 +52,8 @@ step_20() {
exe ufw allow 4190/tcp comment 'Managesieve'
}
step_22_info() { echoinfoArgs "[IP]"; echo "Deny multicast from gateway"; }
step_22_info() { echo "Deny multicast from gateway"; }
step_22_options() { echo "[IP]"; }
step_22_alias() { echo "multicast"; }
step_22() {
shift
@@ -61,12 +67,12 @@ step_22() {
}
step_24_info() {
echoinfoArgs "<FILE SERVER IP|RANGE> [PORT]"
echo "Allow cifs mounts on eth0"
echoinfo " [PORT] (default 445)"
echoinfo " 139 : Cifs version 1.0"
echoinfo " 445 : Cifs version 2.0+"
}
step_24_options() { echo "<FILE SERVER IP|RANGE> [PORT]"; }
step_24_alias() { echo "cifs"; }
step_24() {
shift