From 8948748c0c16ae24ed8a8f353894062f3798899b Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 21 Jun 2019 13:22:43 +0200 Subject: #915 update installer to add APITOKEN= to ogAdmServer.cfg This is going to be used to protect calls to ogAdmServer Example line for ogAdmServer.cfg: APITOKEN=9b5fddfc5d4d1daa74ffd7ce7c3c9925 --- server/bin/setserveraddr | 1 + 1 file changed, 1 insertion(+) (limited to 'server/bin') 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 -- cgit v1.2.3-18-g5258