fix for the writing to permissioned file

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
Uncle Stretch 2025-03-11 15:57:11 +03:00
parent a22b6f92d2
commit bdc094663d
Signed by: str3tch
GPG Key ID: 84F3190747EE79AA

View File

@ -283,7 +283,7 @@ if [[ $VALIDATE = true ]]; then
fi
echo "[+] trying to store CLI updated arguments to '/etc/default/ghost'"
sudo echo "$cli_args" > /etc/default/ghost
echo "$cli_args" | sudo tee /etc/default/ghost > /dev/null
echo "[+] updated CLI arguments stored in '/etc/default/ghost'"
if prompt "[?] do you want to restart 'ghost-node.service' now?"; then