Rework step options handling
This commit is contained in:
@@ -22,10 +22,8 @@ seq_config() {
|
||||
localOcc=( sudo -u $sc_ncServerUser php "$(escpath "$sc_ncInstallDir/occ")" )
|
||||
}
|
||||
|
||||
step_1_info() {
|
||||
echoinfoArgs "[OCC ARGS]"
|
||||
echo "Execute occ command"
|
||||
}
|
||||
step_1_info() { echo "Execute occ command"; }
|
||||
step_1_options() { echo "[OCC ARGS]"; }
|
||||
step_1_alias() { echo "occ"; }
|
||||
step_1() {
|
||||
shift
|
||||
@@ -55,7 +53,8 @@ step_21() {
|
||||
step occ app:update --all
|
||||
}
|
||||
|
||||
step_102_info() { echoinfoArgs "<NC DATABASE> <IPV4 ADDRESS>"; echo "Delete IP from bruteforce table"; }
|
||||
step_102_info() { echo "Delete IP from bruteforce table"; }
|
||||
step_102_options() { echo "<NC DATABASE> <IPV4 ADDRESS>"; }
|
||||
step_102_alias() { echo "bruteforceRemoveIP"; }
|
||||
step_102() {
|
||||
shift
|
||||
@@ -85,7 +84,8 @@ step_102() {
|
||||
endReturn -o $? "Error deleting ip $ip"
|
||||
}
|
||||
|
||||
step_104_info() { echoinfoArgs "<USER>"; echo "Reset and rescan the music library in the background for one user"; }
|
||||
step_104_info() { echo "Reset and rescan the music library in the background for one user"; }
|
||||
step_104_options() { echo "<USER>"; }
|
||||
step_104_alias() { echo "audioreset"; }
|
||||
step_104() {
|
||||
shift
|
||||
@@ -101,7 +101,8 @@ step_104() {
|
||||
exep "${localOcc[@]} audioplayer:scan -vvvv $ncUser >> /var/log/ncAudioRescan.log &"
|
||||
}
|
||||
|
||||
step_106_info() { echoinfoArgs "<USER>"; echo "Scan the music library"; }
|
||||
step_106_info() { echo "Scan the music library"; }
|
||||
step_106_options() { echo "<USER>"; }
|
||||
step_106_alias() { echo "audioscan"; }
|
||||
step_106() {
|
||||
shift
|
||||
|
Reference in New Issue
Block a user