summaryrefslogtreecommitdiffstats
path: root/server/bin/setserveraddr
diff options
context:
space:
mode:
Diffstat (limited to 'server/bin/setserveraddr')
-rwxr-xr-xserver/bin/setserveraddr1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/bin/setserveraddr b/server/bin/setserveraddr
index eb52d64d..cca279b8 100755
--- a/server/bin/setserveraddr
+++ b/server/bin/setserveraddr
@@ -120,6 +120,7 @@ if [ -n "$SERVERIP" ]; then
if [ "$RUN_OGADMREPO" == "yes" ]; then
REPOKEY=$(php -r 'echo md5(uniqid(rand(), true));')
sed -i -e "s/ApiToken=.*/ApiToken=$REPOKEY/" $OPENGNSYS/etc/ogAdmRepo.cfg
+ sed -i -e "s/APITOKEN=.*/APITOKEN=$REPOKEY/" $OPENGNSYS/etc/ogAdmServer.cfg
fi
# If OpenGnsys Server is active, updating the database.
if [ "$RUN_OGADMSERVER" == "yes" ]; then