From 549bb803dd5b4ba9803b80f8b3884513b36c5183 Mon Sep 17 00:00:00 2001 From: deajan Date: Tue, 27 Dec 2016 12:52:37 +0100 Subject: [PATCH] Fixed installer stats don't include os --- dev/common_install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev/common_install.sh b/dev/common_install.sh index 3d8dd77..d5d024e 100755 --- a/dev/common_install.sh +++ b/dev/common_install.sh @@ -6,7 +6,7 @@ PROGRAM=[prgname] PROGRAM_VERSION=[version] PROGRAM_BINARY=$PROGRAM".sh" PROGRAM_BATCH=$PROGRAM"-batch.sh" -SCRIPT_BUILD=2016121301 +SCRIPT_BUILD=2016122701 ## osync / obackup / pmocr / zsnap install script ## Tested on RHEL / CentOS 6 & 7, Fedora 23, Debian 7 & 8, Mint 17 and FreeBSD 8, 10 and 11 @@ -48,6 +48,8 @@ include #### GetLocalOS SUBSET #### function SetLocalOSSettings { USER=root + # LOCAL_OS and LOCAL_OS_FULL are global variables set at GetLocalOS + case $LOCAL_OS in *"BSD"*) GROUP=wheel @@ -74,7 +76,7 @@ function SetLocalOSSettings { exit 1 fi - OS=$(UrlEncode "$localOsVar") + OS=$(UrlEncode "$LOCAL_OS_FULL") } function GetInit {