From 18c29ca47879d38fe79b45a70412b93df3b82493 Mon Sep 17 00:00:00 2001 From: ronivay Date: Mon, 20 Apr 2020 16:28:18 +0300 Subject: [PATCH] change default installation directory from /etc to /opt since it's more appropriate location --- 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 0cc4fbd..3ff0f3a 100644 --- a/sample.xo-install.cfg +++ b/sample.xo-install.cfg @@ -5,7 +5,7 @@ PORT="80" # Base dir for installation and future updates -INSTALLDIR="/etc/xo" +INSTALLDIR="/opt/xo" # Configuration is stored in XOUSER's home directory and by default will be overwritten with every update done by this script. Set CONFIGUPDATE to false if you don't want this to happen CONFIGUPDATE=true diff --git a/xo-install.sh b/xo-install.sh index bec8051..f004f9d 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -19,7 +19,7 @@ source $CONFIG_FILE # Set some default variables if sourcing config file fails for some reason PORT=${PORT:-80} -INSTALLDIR=${INSTALLDIR:-"/etc/xo"} +INSTALLDIR=${INSTALLDIR:-"/opt/xo"} BRANCH=${BRANCH:-"master"} LOGFILE=${LOGFILE:-"$(dirname $0)/xo-install.log"} AUTOUPDATE=${AUTOUPDATE:-"true"}