mirror of
https://github.com/deajan/obackup.git
synced 2025-01-12 15:13:53 +01:00
Fixed install on MacOS. Also added os report.
This commit is contained in:
parent
fdc71ceda3
commit
104d7a0dde
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user