fix html especial characters in commands (#467)

This commit is contained in:
Saeed Vaziry 2025-02-06 20:34:01 +01:00 committed by GitHub
parent dd78c86a60
commit 7be63384d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
if ! echo '{{ $cron }}' | sudo -u {{ $user }} crontab -; then
if ! echo '{!! $cron !!}' | sudo -u {{ $user }} crontab -; then
echo 'VITO_SSH_ERROR' && exit 1
fi

View File

@ -1,3 +1,3 @@
if ! echo '{{ $key }}' | sudo tee -a ~/.ssh/authorized_keys; then
if ! echo '{!! $key !!}' | sudo tee -a ~/.ssh/authorized_keys; then
echo 'VITO_SSH_ERROR' && exit 1
fi

View File

@ -1,4 +1,4 @@
if ! echo '{{ $redirects }}' | sudo tee /etc/nginx/conf.d/{{ $domain }}_redirects; then
if ! echo '{!! $redirects !!}' | sudo tee /etc/nginx/conf.d/{{ $domain }}_redirects; then
echo 'VITO_SSH_ERROR' && exit 1
fi