Ich vertue mich selten bei ln, aber wenn fällt es mir nicht sofort auf und dann verliere ich Zeit ...
Also ist das hier Idiotensicher ... jedenfalls sicherererer ;-).
Mit KI verbessert (Opus 4)
Prompt: Enhance the script I've wrote to make the user understand at any point what the difference is and help figure out the outcome better.
Da ich viel einzelne Configs habe, hilft dieses Script den Workflow einfacher zu halten.
Geschrieben mit Opus 4. Prompt:
write a short bash shell script that reloads nginx and tests the config before
the command for the reload is service nginx reload
the test is nginx -t
since the nginx config is fragmented acress a number of referenced files, help me figure out which part has the config error and show the the path to the file