mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 14:56:41 +00:00
Now also supporting other SERVER directories
This commit is contained in:
1 parent
8c1d23871f
commit
4d29433bf2
1 file changed
+11
@@ -59,6 +59,17 @@ checks ()
|
||||
if [[ $DEPLOY_TO == "" ]]; then
|
||||
DEPLOY_TO=server
|
||||
fi
|
||||
|
||||
SERVER_HOME=$USER_HOME/servers/$DEPLOY_TO
|
||||
|
||||
if [[ ! -d $SERVER_HOME ]]; then
|
||||
SERVER_HOME=`pwd`/../../servers/$DEPLOY_TO
|
||||
if [[ ! -d $SERVER_HOME ]]; then
|
||||
echo "Could not find the correct directory for servers - assumed $SERVER_HOME. Adapt DEPLOY_TO in env.sh to point to the right server directory."
|
||||
exit 10
|
||||
fi
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
activate_user_data ()
|
||||
|
||||
Reference in new issue
Block a user