diff --git a/collection/rancher/v2.x/logs-collector/rancher2_logs_collector.sh b/collection/rancher/v2.x/logs-collector/rancher2_logs_collector.sh index 189b3f5b..08304ea4 100755 --- a/collection/rancher/v2.x/logs-collector/rancher2_logs_collector.sh +++ b/collection/rancher/v2.x/logs-collector/rancher2_logs_collector.sh @@ -1216,6 +1216,7 @@ techo() { # Check if we're running as root. if [[ $EUID -ne 0 ]] && [[ "${DEV}" == "" ]] then + help techo "This script must be run as root" exit 1 fi