From 2f5b500ad03d8ca32c9ecaa64cf3ab791c760901 Mon Sep 17 00:00:00 2001 From: ronivay Date: Sat, 30 May 2020 20:32:57 +0300 Subject: [PATCH] log path fix --- sample.xo-install.cfg | 4 ++-- xo-install.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sample.xo-install.cfg b/sample.xo-install.cfg index 9f56442..31a64cb 100644 --- a/sample.xo-install.cfg +++ b/sample.xo-install.cfg @@ -14,8 +14,8 @@ CONFIGUPDATE=true # Also, you can set this to "release" to use the latest tagged branch. BRANCH="master" -# Installation log path -LOGPATH="$(dirname "$(realpath $0)")/logs" +# Installation log path. If this is commented, the default path is logs directory inside this script root +#LOGPATH="/tmp/example/logs" # Only one PLUGIN variable can be used at a time. Comment out the other one if you change these below. Comment out both if you don't want any plugins to be installed. diff --git a/xo-install.sh b/xo-install.sh index 97b76ef..4b4b4ca 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -21,7 +21,7 @@ source $CONFIG_FILE PORT=${PORT:-80} INSTALLDIR=${INSTALLDIR:-"/opt/xo"} BRANCH=${BRANCH:-"master"} -LOGPATH="${LOGPATH}-"$(dirname "$(realpath $0)")/logs"" +LOGPATH=${LOGPATH:-$(dirname "$(realpath $0)")/logs} AUTOUPDATE=${AUTOUPDATE:-"true"} PRESERVE=${PRESERVE:-"3"} XOUSER=${XOUSER:-"root"}