save db pass to file, disable protected mode, user msg
This commit is contained in:
parent
237517e986
commit
be610fe0c0
@ -19,9 +19,13 @@ $STD apt install -y valkey openssl
|
||||
sed -i 's/^bind .*/bind 0.0.0.0/' /etc/valkey/valkey.conf
|
||||
PASS="$(openssl rand -base64 48 | tr -dc 'a-zA-Z0-9' | head -c32)"
|
||||
echo "requirepass $PASS" >> /etc/valkey/valkey.conf
|
||||
echo "$PASS" >/root/valkey_pass.txt
|
||||
chmod 600 /root/valkey_pass.txt
|
||||
sed -i 's/^protected-mode .*/protected-mode no/' /etc/valkey/valkey.conf
|
||||
systemctl enable -q --now valkey-server
|
||||
systemctl restart valkey-server
|
||||
msg_ok "Installed Valkey"
|
||||
msg "Valkey password saved to /root/valkey_pass.txt"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user