From 644346316ccd467f4bfd1aa3ad0763232d922b05 Mon Sep 17 00:00:00 2001 From: deajan Date: Mon, 17 Apr 2017 20:26:40 +0200 Subject: [PATCH] Check program type for service files --- dev/common_install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev/common_install.sh b/dev/common_install.sh index c3d0d10..1ba4616 100755 --- a/dev/common_install.sh +++ b/dev/common_install.sh @@ -12,7 +12,7 @@ PROGRAM_BINARY=$PROGRAM".sh" PROGRAM_BATCH=$PROGRAM"-batch.sh" SSH_FILTER="ssh_filter.sh" -SCRIPT_BUILD=2017040902 +SCRIPT_BUILD=2017041701 ## 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 @@ -330,7 +330,9 @@ else CreateDir "$BIN_DIR" CopyExampleFiles CopyProgram - CopyServiceFiles + if [ "$PROGRAM" == "osync" ] || [ "$PROGRAM" == "pmocr" ]; then + CopyServiceFiles + fi QuickLogger "$PROGRAM installed. Use with $BIN_DIR/$PROGRAM" if [ "$PROGRAM" == "osync" ] || [ "$PROGRAM" == "obackup" ]; then QuickLogger ""