Shell Kommandos
native Kommandos oder Shell-Skripte ausführen
Last updated
native Kommandos oder Shell-Skripte ausführen
Last updated
Obwohl Salt zahlreiche fertige Sate-Module bietet, geht es nicht ohne native Kommandos oder Shell-Skripte
Achten Sie auf >-
hinter - onlyif
und die nachfolgende sechsfache Einrückung. Diese Syntax verhindert, dass der Doppelpunkt aus Status: active
von Yaml interpretiert wird und stattdessen ungefiltert an die Shell weitergereicht wird.
onlyif
: A command to run as a check, run the named command only if the command passed to theonlyif
option returns a zero exit status
unless
: A command to run as a check, only run the named command if the command passed to theunless
option returns a non-zero exit status
Netdata deinstallieren:
Mehr Informationen zum Thema Shell-Kommandos .