Skip to content
Snippets Groups Projects
Commit cfd7db05 authored by Tomáš Szaniszlo's avatar Tomáš Szaniszlo Committed by Tomáš Szaniszlo
Browse files

install: fix detection of smbclient

parent 9d25c801
No related branches found
No related tags found
No related merge requests found
......@@ -315,12 +315,12 @@ sub check_cron {
sub check_env {
# Check for smbclient
my $output = `which smbclient &>/dev/null`;
`which smbclient 2>&1`;
if ($? != 0) {
die "[ERROR] Samba client seems not to be installed. (smbclient)";
die "[ERROR] No smbclient installed.";
}
# Check if we don't have Root
# Check if we are root
die "[ERROR] Must be run with root privileges\n" if $> != 0;
}
#--------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment