diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2019-06-21 13:22:43 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-06-24 13:46:10 +0200 |
commit | 8948748c0c16ae24ed8a8f353894062f3798899b (patch) | |
tree | 847bd119dc15cf221659aa94d368c3755dce6dbb /server/bin | |
parent | 2ccec2784366d4228660f32c8f0d4cafc7d6ec40 (diff) |
#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
Diffstat (limited to 'server/bin')
-rwxr-xr-x | server/bin/setserveraddr | 1 |
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 |