2
0
mirror of https://github.com/deajan/osync synced 2024-11-05 12:01:02 +00:00

Fixed os detection

This commit is contained in:
deajan 2016-08-29 17:53:23 +02:00
parent 1428c0e127
commit a7d49602d3

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=2016082901
## 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"*)
*"MINGW"*|*"CYGWIN"*)
USER=""
GROUP=""
;;
*)
GROUP=root
;;
esac
if ([ "$USER" != "" ] && [ "$(whoami)" != "$USER" ]); then