Added program check

This commit is contained in:
deajan 2017-03-13 11:46:44 +01:00
parent 24d76f1888
commit 6346a3a94c
1 changed files with 5 additions and 3 deletions

View File

@ -8,7 +8,7 @@ PROGRAM_BINARY=$PROGRAM".sh"
PROGRAM_BATCH=$PROGRAM"-batch.sh" PROGRAM_BATCH=$PROGRAM"-batch.sh"
SSH_FILTER="ssh_filter.sh" SSH_FILTER="ssh_filter.sh"
SCRIPT_BUILD=2017021002 SCRIPT_BUILD=2017031301
## osync / obackup / pmocr / zsnap install script ## 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 ## 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 { function CopyProgram {
binFiles=() binFiles=()
binFiles[0]="$PROGRAM_BINARY" binFiles[0]="$PROGRAM_BINARY"
if [ "$PROGRAM" == "osync" ] || [ "$PROGRAM" == "obackup" ]; then
binFiles[1]="$PROGRAM_BATCH" binFiles[1]="$PROGRAM_BATCH"
binFiles[2]="$SSH_FILTER" binFiles[2]="$SSH_FILTER"
fi
local user="" local user=""
local group="" local group=""