These are the scripts currently run by hand on the old EC2 server to do a full upgrade (safe storeall handshake, backups, explode WAR, run the manager schema-migration tool, restart Tomcat). Committed as-is for now to review and refactor from, except tomcat_ctl.sh, which is already rewritten to control Tomcat via the new Docker container's supervisord (through the "service" shim) instead of the old host's /etc/init.d/tomcat8, since that service doesn't exist there. Kept as a drop-in replacement: the "status" output still contains both literal substrings upgrade.sh and restart.sh each grep for, so neither caller needed to change yet. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tj4SF2BGFxgoRYrCAzNpDb
12 lines
729 B
Text
12 lines
729 B
Text
# Force LF line endings for these shell scripts regardless of what a
|
|
# checkout client's own core.autocrlf setting would otherwise do.
|
|
#
|
|
# Without this, a checkout on Windows (e.g. via Git for Windows/SourceTree
|
|
# with the common core.autocrlf=true default) can silently convert these to
|
|
# CRLF. A CRLF shell script still LOOKS fine and even shows as executable —
|
|
# but its shebang line becomes "#!/bin/bash\r", which the kernel reads
|
|
# literally, looking for an interpreter named "bash\r" that doesn't exist.
|
|
# We already hit exactly this failure mode once this session on
|
|
# xzpect-timer's deploy-pwa.sh ("env: $'bash\r': No such file or directory",
|
|
# exit 127) — same fix here, applied up front this time.
|
|
*.sh text eol=lf
|