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"}