Re introduced os detection fix that disappeared with PR2

This commit is contained in:
Orsiris de Jong 2016-08-29 20:03:32 +02:00 committed by GitHub
parent 44c341a7af
commit e4acfc029d
1 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ PROGRAM=osync
PROGRAM_VERSION=1.2-dev-parallel
PROGRAM_BINARY=$PROGRAM".sh"
PROGRAM_BATCH=$PROGRAM"-batch.sh"
SCRIPT_BUILD=2016052601
SCRIPT_BUILD=2016082902
## osync / obackup / pmocr / zsnap install script
## Tested on RHEL / CentOS 6 & 7, Fedora 23, Debian 7 & 8, Mint 17 and FreeBSD 8 & 10
@ -95,13 +95,13 @@ function SetOSSettings {
*"Darwin"*)
GROUP=admin
;;
*)
GROUP=root
;;
*"MINGW32"*|*"CYGWIN"*)
USER=""
GROUP=""
;;
*)
GROUP=root
;;
esac
if ([ "$USER" != "" ] && [ "$(whoami)" != "$USER" ] && [ "$FAKEROOT" == "" ]); then