fix: LF line endings in deploy shell scripts (systemd 203/EXEC)

CRLF in sac-api-start.sh shebang broke sac-api with status=203/EXEC on Linux.
Add .gitattributes for *.sh and strip CR in sac-deploy before chmod.
This commit is contained in:
2026-07-13 17:23:58 +10:00
parent 3475c1811b
commit dd2356cf04
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -95,6 +95,7 @@ if [ -f "${APP_ROOT}/deploy/systemd/${SERVICE_NAME}.service" ]; then
fi
START_SH="${APP_ROOT}/deploy/systemd/sac-api-start.sh"
if [ -f "${START_SH}" ]; then
sed -i 's/\r$//' "${START_SH}"
chmod 755 "${START_SH}"
fi