#!/bin/bash set -e package_manager="yum" package_sysname="onlyoffice"; product="appserver" package_services=""; RES_APP_INSTALLED="is already installed"; RES_APP_CHECK_PORTS="uses ports" RES_CHECK_PORTS="please, make sure that the ports are free."; RES_INSTALL_SUCCESS="Thank you for installing ONLYOFFICE ${product}."; RES_QUESTIONS="In case you have any questions contact us via http://support.onlyoffice.com or visit our forum at http://dev.onlyoffice.org" while [ "$1" != "" ]; do case $1 in -u | --update ) if [ "$2" != "" ]; then UPDATE=$2 shift fi ;; -ls | --local_scripts ) if [ "$2" != "" ]; then LOCAL_SCRIPTS=$2 shift fi ;; -? | -h | --help ) echo " Usage $0 [PARAMETER] [[PARAMETER], ...]" echo " Parameters:" echo " -u, --update use to update existing components (true|false)" echo " -ls, --local_scripts use 'true' to run local scripts (true|false)" echo " -?, -h, --help this help" echo exit 0 ;; esac shift done if [ -z "${UPDATE}" ]; then UPDATE="false"; fi if [ -z "${LOCAL_SCRIPTS}" ]; then LOCAL_SCRIPTS="true"; fi cat > /etc/yum.repos.d/onlyoffice.repo < /etc/yum.repos.d/onlyoffice4testing.repo <