Add MAM updater script (update.sh) and integrate into installer copy block

This commit is contained in:
2026-06-24 12:24:17 +09:00
parent 5d69ad4f0b
commit 701d3f10d9
2 changed files with 143 additions and 0 deletions
+6
View File
@@ -141,6 +141,12 @@ if ! check_assets_present "."; then
echo "remove.sh" >> "$MANIFEST_FILE"
fi
if [ -f "$STAGE_DIR/deploy/update.sh" ] && [ ! -e "update.sh" ]; then
cp "$STAGE_DIR/deploy/update.sh" update.sh || { echo "❌ Error: Failed to copy update.sh" >&2; exit 1; }
chmod +x update.sh
echo "update.sh" >> "$MANIFEST_FILE"
fi
if [ -f "$STAGE_DIR/.env.example" ] && [ ! -e ".env.example" ]; then
cp "$STAGE_DIR/.env.example" . || { echo "❌ Error: Failed to copy .env.example" >&2; exit 1; }
echo ".env.example" >> "$MANIFEST_FILE"