mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-07-27 10:31:38 +08:00
9 lines
286 B
Bash
9 lines
286 B
Bash
#!/bin/sh
|
|
# generate secret key
|
|
[ -n "$(uci -q get teleproxy.default.secret)" ] || {
|
|
#SECRET=$(dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -v -e '16/1 "%02x"')
|
|
SECRET=$(/usr/bin/teleproxy generate-secret)
|
|
uci set teleproxy.default.secret="$SECRET"
|
|
uci commit teleproxy
|
|
}
|