summaryrefslogtreecommitdiffstats
path: root/client/shared
diff options
context:
space:
mode:
Diffstat (limited to 'client/shared')
-rwxr-xr-xclient/shared/etc/init/default.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/shared/etc/init/default.sh b/client/shared/etc/init/default.sh
index fd88bb53..f24548f0 100755
--- a/client/shared/etc/init/default.sh
+++ b/client/shared/etc/init/default.sh
@@ -22,10 +22,13 @@ if [ "$ogstatus" != "offline" ]; then
if ogFindCache &>/dev/null; then
/opt/opengnsys/bin/tiptorrent --root /opt/opengnsys/cache/opt/opengnsys/images -n 3 &
fi
+ SERVER_CONFIG="/opt/opengnsys/ogClient/cfg/ogclient-$server.json"
GROUP_CONFIG=/opt/opengnsys/ogClient/cfg/${group/ /_}.json
PYMAJMIN=`python3 --version | cut -d" " -f2 | cut -d. -f1,2`
export PYTHONPATH=/opt/opengnsys/lib/python$PYMAJMIN
- if [ -f $GROUP_CONFIG ]; then
+ if [ -f $SERVER_CONFIG ]; then
+ /opt/opengnsys/ogClient/./ogclient -c $SERVER_CONFIG
+ elif [ -f $GROUP_CONFIG ]; then
/opt/opengnsys/ogClient/./ogclient -c $GROUP_CONFIG
else
/opt/opengnsys/ogClient/./ogclient