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

@@ -28,10 +28,10 @@ step_1() {
}
step_2_info() {
echoinfoArgs "[-s]"
echo "Setup snmp v3 access"
echoinfo " -s : Stop after creating authentication entry"
}
step_2_options() { echo "[-s]"; }
step_2_alias() { echo "v3access"; }
step_2() {
#
@@ -101,10 +101,10 @@ step_2() {
v3AuthLoc="/var/lib/snmp/snmpd.conf"
step_5_info() {
echoinfoArgs "[INTERFACE]"
echo "Add ufw rules for port 161 udp"
echoinfo " [INTERFACE] (default: eth0)"
}
step_5_options() { echo "[INTERFACE]"; }
step_5_alias() { echo "ufw"; }
step_5() {
shift