|
|
|
@ -12,7 +12,7 @@ PROGRAM_BINARY=$PROGRAM".sh"
|
|
|
|
|
PROGRAM_BATCH=$PROGRAM"-batch.sh"
|
|
|
|
|
SSH_FILTER="ssh_filter.sh"
|
|
|
|
|
|
|
|
|
|
SCRIPT_BUILD=2017031402
|
|
|
|
|
SCRIPT_BUILD=2017032101
|
|
|
|
|
|
|
|
|
|
## 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
|
|
|
|
@ -122,7 +122,7 @@ function GetLocalOS {
|
|
|
|
|
*"BSD"*)
|
|
|
|
|
LOCAL_OS="BSD"
|
|
|
|
|
;;
|
|
|
|
|
*"MINGW32"*|*"MSYS"*)
|
|
|
|
|
*"MINGW32"*|*"MINGW64"*|*"MSYS"*)
|
|
|
|
|
LOCAL_OS="msys"
|
|
|
|
|
;;
|
|
|
|
|
*"CYGWIN"*)
|
|
|
|
@ -331,7 +331,9 @@ function CopyProgram {
|
|
|
|
|
function CopyServiceFiles {
|
|
|
|
|
if ([ "$init" == "systemd" ] && [ -f "$SCRIPT_PATH/$SERVICE_FILE_SYSTEMD_SYSTEM" ]); then
|
|
|
|
|
CopyFile "$SCRIPT_PATH" "$SERVICE_DIR_SYSTEMD_SYSTEM" "$SERVICE_FILE_SYSTEMD_SYSTEM" "" "" "" true
|
|
|
|
|
CopyFile "$SCRIPT_PATH" "$SERVICE_DIR_SYSTEMD_USER" "$SERVICE_FILE_SYSTEMD_USER" "" "" "" true
|
|
|
|
|
if [ -f "$SCRIPT_PATH/$SERVICE_FILE_SYSTEMD_SYSTEM_USER" ]; then
|
|
|
|
|
CopyFile "$SCRIPT_PATH" "$SERVICE_DIR_SYSTEMD_USER" "$SERVICE_FILE_SYSTEMD_USER" "" "" "" true
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
QuickLogger "Created [$SERVICE_NAME] service in [$SERVICE_DIR_SYSTEMD_SYSTEM] and [$SERVICE_DIR_SYSTEMD_USER]."
|
|
|
|
|
QuickLogger "Can be activated with [systemctl start SERVICE_NAME@instance.conf] where instance.conf is the name of the config file in $CONF_DIR."
|
|
|
|
@ -402,6 +404,7 @@ function Usage {
|
|
|
|
|
echo "options:"
|
|
|
|
|
echo "--silent Will log and bypass user interaction."
|
|
|
|
|
echo "--no-stats Used with --silent in order to refuse sending anonymous install stats."
|
|
|
|
|
echo "--remove Remove the program."
|
|
|
|
|
exit 127
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|