Fixed install on MacOS. Also added os report.

This commit is contained in:
deajan 2016-05-09 11:28:33 +02:00
parent fdc71ceda3
commit 104d7a0dde
1 changed files with 5 additions and 2 deletions

View File

@ -4,7 +4,7 @@ PROGRAM=obackup
PROGRAM_VERSION=2.0-pre PROGRAM_VERSION=2.0-pre
PROGRAM_BINARY=$PROGRAM".sh" PROGRAM_BINARY=$PROGRAM".sh"
PROGRAM_BATCH=$PROGRAM"-batch.sh" PROGRAM_BATCH=$PROGRAM"-batch.sh"
SCRIPT_BUILD=2016041401 SCRIPT_BUILD=2016050901
## osync / obackup / pmocr / zsnap install script ## osync / obackup / pmocr / zsnap install script
## Tested on RHEL / CentOS 6 & 7, Fedora 23, Debian 7 & 8, Mint 17 and FreeBSD 8 & 10 ## 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"*) *"BSD"*)
GROUP=wheel GROUP=wheel
;; ;;
*"Darwin"*)
GROUP=admin
;;
*) *)
GROUP=root GROUP=root
;; ;;
@ -172,7 +175,7 @@ fi
function Statistics { 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 if type wget > /dev/null; then
wget -qO- $link > /dev/null 2>&1 wget -qO- $link > /dev/null 2>&1
if [ $? == 0 ]; then if [ $? == 0 ]; then