mirror of
https://github.com/deajan/osync
synced 2024-11-03 15:40:14 +00:00
Added program check
This commit is contained in:
parent
24d76f1888
commit
6346a3a94c
@ -8,7 +8,7 @@ PROGRAM_BINARY=$PROGRAM".sh"
|
||||
PROGRAM_BATCH=$PROGRAM"-batch.sh"
|
||||
SSH_FILTER="ssh_filter.sh"
|
||||
|
||||
SCRIPT_BUILD=2017021002
|
||||
SCRIPT_BUILD=2017031301
|
||||
|
||||
## 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
|
||||
@ -183,8 +183,10 @@ function CopyExampleFiles {
|
||||
function CopyProgram {
|
||||
binFiles=()
|
||||
binFiles[0]="$PROGRAM_BINARY"
|
||||
binFiles[1]="$PROGRAM_BATCH"
|
||||
binFiles[2]="$SSH_FILTER"
|
||||
if [ "$PROGRAM" == "osync" ] || [ "$PROGRAM" == "obackup" ]; then
|
||||
binFiles[1]="$PROGRAM_BATCH"
|
||||
binFiles[2]="$SSH_FILTER"
|
||||
fi
|
||||
|
||||
local user=""
|
||||
local group=""
|
||||
|
Loading…
Reference in New Issue
Block a user