Add MAM uninstaller script (remove.sh) and integrate into installer copy block
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user