[PR #287] [MERGED] feat: Add alpine variant support for LXC scripts #329

Closed
opened 2026-02-26 12:41:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE-Local/pull/287
Author: @michelroegl-brunner
Created: 11/7/2025
Status: Merged
Merged: 11/7/2025
Merged by: @michelroegl-brunner

Base: mainHead: feat/250_chose_version


📝 Commits (2)

  • 6ad18e1 feat: Add alpine variant support for LXC scripts
  • cf3f9a5 feat: Add version toggle in TextViewer for default/alpine variants

📊 Changes

4 files changed (+523 additions, -56 deletions)

View changed files

📝 src/app/_components/ScriptDetailModal.tsx (+42 -1)
src/app/_components/ScriptVersionModal.tsx (+210 -0)
📝 src/app/_components/TextViewer.tsx (+196 -55)
📝 src/server/services/scriptDownloader.js (+75 -0)

📄 Description

Summary

This PR adds support for downloading and selecting between default and alpine variants of LXC scripts.

Changes

  • Download alpine install scripts: When a script has an alpine variant, the system now downloads alpine-{slug}-install.sh from the install/ directory
  • Version selection modal: New ScriptVersionModal component allows users to choose between default and alpine versions before server selection
  • Updated installation flow: ScriptDetailModal now shows version selection when multiple variants exist, then proceeds to server selection
  • Script execution: Updated to use the selected version type to find and execute the correct script path

Technical Details

  • Updated scriptDownloader.js to download alpine install scripts when alpine CT variants exist
  • Created ScriptVersionModal.tsx component with resource requirements display
  • Modified ScriptDetailModal.tsx to integrate version selection into the installation flow
  • Script execution now uses the selected version type to determine which script to run

Testing

  • Tested with adguard script which has both default and alpine variants
  • Verified alpine install scripts are downloaded correctly
  • Confirmed version selection modal appears when multiple variants exist
  • Verified script execution uses the correct version based on user selection

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE-Local/pull/287 **Author:** [@michelroegl-brunner](https://github.com/michelroegl-brunner) **Created:** 11/7/2025 **Status:** ✅ Merged **Merged:** 11/7/2025 **Merged by:** [@michelroegl-brunner](https://github.com/michelroegl-brunner) **Base:** `main` ← **Head:** `feat/250_chose_version` --- ### 📝 Commits (2) - [`6ad18e1`](https://github.com/community-scripts/ProxmoxVE-Local/commit/6ad18e185e4d24742055038c0dec5898eefdc4f3) feat: Add alpine variant support for LXC scripts - [`cf3f9a5`](https://github.com/community-scripts/ProxmoxVE-Local/commit/cf3f9a54798802a650500202c13c756ce86892d3) feat: Add version toggle in TextViewer for default/alpine variants ### 📊 Changes **4 files changed** (+523 additions, -56 deletions) <details> <summary>View changed files</summary> 📝 `src/app/_components/ScriptDetailModal.tsx` (+42 -1) ➕ `src/app/_components/ScriptVersionModal.tsx` (+210 -0) 📝 `src/app/_components/TextViewer.tsx` (+196 -55) 📝 `src/server/services/scriptDownloader.js` (+75 -0) </details> ### 📄 Description ## Summary This PR adds support for downloading and selecting between default and alpine variants of LXC scripts. ## Changes - **Download alpine install scripts**: When a script has an alpine variant, the system now downloads `alpine-{slug}-install.sh` from the `install/` directory - **Version selection modal**: New `ScriptVersionModal` component allows users to choose between default and alpine versions before server selection - **Updated installation flow**: `ScriptDetailModal` now shows version selection when multiple variants exist, then proceeds to server selection - **Script execution**: Updated to use the selected version type to find and execute the correct script path ## Technical Details - Updated `scriptDownloader.js` to download alpine install scripts when alpine CT variants exist - Created `ScriptVersionModal.tsx` component with resource requirements display - Modified `ScriptDetailModal.tsx` to integrate version selection into the installation flow - Script execution now uses the selected version type to determine which script to run ## Testing - Tested with adguard script which has both default and alpine variants - Verified alpine install scripts are downloaded correctly - Confirmed version selection modal appears when multiple variants exist - Verified script execution uses the correct version based on user selection --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 12:41:01 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE-Local#329
No description provided.