Build Experimental
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
This commit is contained in:
12
Experimental/set_worker_password.sh
Normal file
12
Experimental/set_worker_password.sh
Normal 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
|
Reference in New Issue
Block a user