This commit is contained in:
gitlab.com/pepa65 committed 2022-09-08 17:14:03 +07:00
1 parent 66cc078c88
commit d3a1719d6c
6 files changed
+13 -16

No files matched your search

+3 -1
View File
@@ -22,7 +22,9 @@ chmod +x /usr/bin/caddy /usr/bin/mailer
up=
shopt -s nullglob
for u in "${!upw[@]}"
do up+="\t\t$u $(caddy hash-password --plaintext "${upw["$u"]}")#"
do hash=${uhash[$u]}
[[ $hash ]] || hash=$(caddy hash-password --plaintext "${upw["$u"]}")
up+="\t\t$u $hash#"
done
sed "s/%userpw%/$(echo -en "$up")/" Caddyfile |tr '#' '\n' >/srv/c
mv /srv/c Caddyfile