fix set rspamd worker password

This commit is contained in:
FreddleSpl0it
2022-10-01 15:56:45 +02:00
parent fb7e234120
commit 10e560c5b2
4 changed files with 19 additions and 19 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/bash
password_file='/etc/rspamd/override.d/worker-controller-password.inc'
password_hash=`/usr/bin/rspamadm pw -e -p $1`
echo 'enable_password = "'$password_hash'";' > $password_file
if grep -q "$password_hash" "$password_file"; then
echo "OK"
else
echo "ERROR"
fi