mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 05:56:16 +00:00
Fix .env Files for Isolated Users (#496)
This commit is contained in:
9
resources/views/ssh/os/edit-file.blade.php
Normal file
9
resources/views/ssh/os/edit-file.blade.php
Normal 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
|
Reference in New Issue
Block a user