From 104d7a0dde423e2057a05140461d70aa7366657b Mon Sep 17 00:00:00 2001 From: deajan Date: Mon, 9 May 2016 11:28:33 +0200 Subject: [PATCH] Fixed install on MacOS. Also added os report. --- install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 75769b0..5427a00 100755 --- a/install.sh +++ b/install.sh @@ -4,7 +4,7 @@ PROGRAM=obackup PROGRAM_VERSION=2.0-pre PROGRAM_BINARY=$PROGRAM".sh" PROGRAM_BATCH=$PROGRAM"-batch.sh" -SCRIPT_BUILD=2016041401 +SCRIPT_BUILD=2016050901 ## osync / obackup / pmocr / zsnap install script ## Tested on RHEL / CentOS 6 & 7, Fedora 23, Debian 7 & 8, Mint 17 and FreeBSD 8 & 10 @@ -41,6 +41,9 @@ case $local_os_var in *"BSD"*) GROUP=wheel ;; + *"Darwin"*) + GROUP=admin + ;; *) GROUP=root ;; @@ -172,7 +175,7 @@ fi function Statistics { - local link="http://instcount.netpower.fr?program=$PROGRAM&version=$PROGRAM_VERSION" + local link="http://instcount.netpower.fr?program=$PROGRAM&version=$PROGRAM_VERSION&os=$local_os_var" if type wget > /dev/null; then wget -qO- $link > /dev/null 2>&1 if [ $? == 0 ]; then