Add MAM uninstaller script (remove.sh) and integrate into installer copy block

This commit is contained in:
2026-06-24 11:49:45 +09:00
parent b37407874d
commit db75b7deb0
2 changed files with 154 additions and 0 deletions
+5
View File
@@ -128,6 +128,11 @@ if ! check_assets_present "."; then
fi
done
if [ -f "$STAGE_DIR/deploy/remove.sh" ] && [ ! -e "remove.sh" ]; then
cp "$STAGE_DIR/deploy/remove.sh" remove.sh || { echo "❌ Error: Failed to copy remove.sh" >&2; exit 1; }
chmod +x remove.sh
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; }
fi