From 5881c71212538d0aa4d91eb1c121031a32aca752 Mon Sep 17 00:00:00 2001 From: deajan Date: Wed, 29 Apr 2020 11:44:28 +0100 Subject: [PATCH] Rebuilt target --- install.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 8ac91c1..9eb8e78 100755 --- a/install.sh +++ b/install.sh @@ -10,7 +10,7 @@ PROGRAM_BINARY=$PROGRAM".sh" PROGRAM_BATCH=$PROGRAM"-batch.sh" SSH_FILTER="ssh_filter.sh" -SCRIPT_BUILD=2020031502 +SCRIPT_BUILD=2020042901 INSTANCE_ID="installer-$SCRIPT_BUILD" ## osync / obackup / pmocr / zsnap install script @@ -2517,6 +2517,7 @@ function FileMove () { function SetLocalOSSettings { USER=root + DO_INIT=true # LOCAL_OS and LOCAL_OS_FULL are global variables set at GetLocalOS @@ -2526,10 +2527,12 @@ function SetLocalOSSettings { ;; *"MacOSX"*) GROUP=admin + DO_INIT=false ;; - *"msys"*|*"Cygwin"*) + *"Cygwin"*|*"Android"*|*"msys"*|*"BusyBox"*) USER="" GROUP="" + DO_INIT=false ;; *) GROUP=root @@ -2883,7 +2886,11 @@ umask 0022 GetLocalOS SetLocalOSSettings -GetInit +# On Mac OS this always produces a warning which causes the installer to fail with exit code 2 +# Since we know it won't work anyway, and that's fine, just skip this step +if $DO_INIT; then + GetInit +fi STATS_LINK="http://instcount.netpower.fr?program=$PROGRAM&version=$PROGRAM_VERSION&os=$OS&action=$ACTION"