From 93a7be0e45adda85cc9438599962b30ca5c24602 Mon Sep 17 00:00:00 2001 From: Samin Yaser Date: Sat, 16 Sep 2023 10:45:02 +0600 Subject: [PATCH] added logging --- startup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/startup.sh b/startup.sh index a9084c4..858eaa6 100644 --- a/startup.sh +++ b/startup.sh @@ -1,5 +1,7 @@ #!/bin/sh +echo "Script started" > /home/site/wwwroot/startup_status.txt + # File upload fix sed -i 's|abort_unless|//&|g' /home/site/wwwroot/vendor/livewire/livewire/src/Controllers/FileUploadHandler.php sed -i '/tmpfile/a $tmpfname = tempnam(sys_get_temp_dir(), "");\n$tmpFile = fopen($tmpfname, "w");' /home/site/wwwroot/vendor/livewire/livewire/src/TemporaryUploadedFile.php @@ -21,4 +23,4 @@ php artisan event:cache php artisan route:cache php artisan view:cache -echo "Startup script ran successfully." > /home/startup_status.txt +echo "Startup script ran successfully." > /home/site/wwwroot/startup_status.txt