Commit cfd7db05 authored by Tomáš Szaniszlo's avatar Tomáš Szaniszlo Committed by Tomáš Szaniszlo
Browse files

install: fix detection of smbclient

parent 9d25c801
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;
}
#--------------------------------------------------------------------