Luci-app-fwknopd: Update uci-defaults as key-gen is now exposed in the fwknopd binary
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
This commit is contained in:
parent
12cbfc8ec4
commit
a497fbab4c
1 changed files with 5 additions and 7 deletions
|
@ -8,12 +8,10 @@ uci batch <<EOF
|
|||
commit ucitrack
|
||||
EOF
|
||||
|
||||
if [ -f /usr/bin/fwknop ]; then
|
||||
uci set fwknopd.@access[0].keytype='Base 64 key'
|
||||
uci set fwknopd.@access[0].hkeytype='Base 64 key'
|
||||
uci set fwknopd.@access[0].KEY_BASE64=`fwknop --key-gen | awk '/^KEY/ {print $2;}'`
|
||||
uci set fwknopd.@access[0].HMAC_KEY_BASE64=`fwknop --key-gen | awk '/^HMAC/ {print $2;}'`
|
||||
uci commit fwknopd
|
||||
fi
|
||||
uci set fwknopd.@access[0].keytype='Base 64 key'
|
||||
uci set fwknopd.@access[0].hkeytype='Base 64 key'
|
||||
uci set fwknopd.@access[0].KEY_BASE64=`fwknopd --key-gen | awk '/^KEY/ {print $2;}'`
|
||||
uci set fwknopd.@access[0].HMAC_KEY_BASE64=`fwknopd --key-gen | awk '/^HMAC/ {print $2;}'`
|
||||
uci commit fwknopd
|
||||
rm -f /tmp/luci-indexcache
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue