From 49d910725f75158f06de168cf1cb3295105f9936 Mon Sep 17 00:00:00 2001 From: ronivay Date: Sat, 30 May 2020 19:35:05 +0300 Subject: [PATCH] logpath fix --- sample.xo-install.cfg | 2 +- xo-install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sample.xo-install.cfg b/sample.xo-install.cfg index 32d5588..9f56442 100644 --- a/sample.xo-install.cfg +++ b/sample.xo-install.cfg @@ -15,7 +15,7 @@ CONFIGUPDATE=true BRANCH="master" # Installation log path -LOGPATH="$(dirname $0)/logs" +LOGPATH="$(dirname "$(realpath $0)")/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 de1d0b9..97b76ef 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 $0)/logs}" +LOGPATH="${LOGPATH}-"$(dirname "$(realpath $0)")/logs"" AUTOUPDATE=${AUTOUPDATE:-"true"} PRESERVE=${PRESERVE:-"3"} XOUSER=${XOUSER:-"root"}