mirror of
https://github.com/deajan/osync
synced 2024-11-05 12:01:02 +00:00
Fixed os detection
This commit is contained in:
parent
1428c0e127
commit
a7d49602d3
10
install.sh
10
install.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user