Forward
This commit is contained in:
1 parent
66cc078c88
commit
d3a1719d6c
6 files changed
+13
-16
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user