summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2020-10-29 13:23:39 +0100
committerIrina Gómez <irinagomez@us.es>2020-10-29 13:23:39 +0100
commit63b3fbf52441cde08a05df2d2237f63be52adfc3 (patch)
tree2df23f158d4fae1c644d218e96fb1fa7d33a1583
parent084fdc10f7e861ce6e83120dc099d2416904af55 (diff)
#988 Fix settoken json handling
source_json_config loads config values.
-rwxr-xr-xserver/bin/settoken1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/bin/settoken b/server/bin/settoken
index 3bb191d7..25df902b 100755
--- a/server/bin/settoken
+++ b/server/bin/settoken
@@ -47,6 +47,7 @@ case "${1,,}" in
esac
[ "$USER" != "root" ] && raiseError access "Need to be root"
[ -w $SERVERCFG ] || raiseError access "Server configuration file"
+source_json_config $SERVERCFG
# Update user token.
if [ "$OGUSER" ]; then