Skip to content

Commit 7be6338

Browse files
authored
fix html especial characters in commands (#467)
1 parent dd78c86 commit 7be6338

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

resources/views/ssh/cron/update.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if ! echo '{{ $cron }}' | sudo -u {{ $user }} crontab -; then
1+
if ! echo '{!! $cron !!}' | sudo -u {{ $user }} crontab -; then
22
echo 'VITO_SSH_ERROR' && exit 1
33
fi
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
if ! echo '{{ $key }}' | sudo tee -a ~/.ssh/authorized_keys; then
1+
if ! echo '{!! $key !!}' | sudo tee -a ~/.ssh/authorized_keys; then
22
echo 'VITO_SSH_ERROR' && exit 1
33
fi

resources/views/ssh/services/webserver/nginx/update-redirects.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if ! echo '{{ $redirects }}' | sudo tee /etc/nginx/conf.d/{{ $domain }}_redirects; then
1+
if ! echo '{!! $redirects !!}' | sudo tee /etc/nginx/conf.d/{{ $domain }}_redirects; then
22
echo 'VITO_SSH_ERROR' && exit 1
33
fi
44

0 commit comments

Comments
 (0)