Fix .env Files for Isolated Users (#496)

This commit is contained in:
Richard Anderson
2025-02-22 08:23:03 +00:00
committed by GitHub
parent 2356e44f5b
commit 1223ea1499
5 changed files with 39 additions and 8 deletions

View File

@ -0,0 +1,9 @@
@if($sudo) sudo @endif tee {!! $path !!} << 'VITO_SSH_EOF' > /dev/null
{!! $content !!}
VITO_SSH_EOF
if [ $? -eq 0 ]; then
echo "Successfully wrote to {{ $path }}"
else
echo 'VITO_SSH_ERROR' && exit 1
fi