From 63b5024bf2c5cf419b5878f32a348c3391b1c742 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 17 Jan 2025 10:10:11 +0100 Subject: [PATCH 01/18] improve & shorten README --- README.md | 162 ++++++++++++++++++++++++++---------------------------- 1 file changed, 77 insertions(+), 85 deletions(-) diff --git a/README.md b/README.md index 74d8478b1..7b81b6df1 100644 --- a/README.md +++ b/README.md @@ -7,106 +7,98 @@
-

Proxmox VE Helper-Scripts: A Community Legacy

-

Dear Community,

-

In agreement with tteck and Community-Scripts, this project has now transitioned into a community-driven effort. We aim to continue his work, building on the foundation he laid to support Proxmox users worldwide. Tteck sadly passed away in early November 2024. This project will be a memorial for his incredible contribution to the community.

- -

- - Website - - - Contribute - - - Guides - - - Discord - - - Changelog - -

- -
- -## ๐Ÿš€  Introduction - -**Proxmox VE Helper-Scripts** is a community-driven initiative that simplifies the setup of Proxmox Virtual Environment (VE). Originally created by [tteck](https://github.com/tteck), these scripts automate and streamline the process of creating and configuring Linux containers (LXC) and virtual machines (VMs) on Proxmox VE. +

Proxmox VE Helper-Scripts

+

A Community Legacy in Memory of @tteck

+

+ + Website + + + Discord + + + Donate + + + Contribute + + + Guides + + + Changelog + +

+
--- -## ๐Ÿ“ฆ  Features +## ๐Ÿš€ Project Overview -- **Interactive Setup**: Select simple or advanced options for your VM or LXC container configurations. -- **Customizable Configuration**: Advanced setup allows you to fine-tune your environment. -- **Ease of Use**: Scripts automatically validate inputs to generate the final configuration. -- **Proxmox Integration**: Seamlessly integrates with Proxmox VE to provide a user-friendly experience. -- **Community-Driven**: This project is actively maintained and improved by the community. - -
- -## ๐Ÿš€  Installation - -To install the Proxmox Helper Scripts, simply follow these steps: - -1. Open the [Website](https://helper-scripts.com/) -2. Search for the desired script, e.g. **"Home Assistant OS VM"**. -3. In the **"How To Install"** section, copy the provided **Bash command**. -4. Open the Proxmox shell on your **main node**. -5. Paste the command into the console, hit enter, and you are away! ๐Ÿš€ - -For detailed instructions, check out our [official guides](https://github.com/community-scripts/ProxmoxVE/blob/main/USER_SUBMITTED_GUIDES.md). +**Proxmox VE Helper-Scripts** is a collection of tools to simplify the setup and management of Proxmox Virtual Environment (VE). Originally created by [tteck](https://github.com/tteck), these scripts are now continued by the community. Our goal is to preserve and expand upon tteck's work, providing an ongoing resource for Proxmox users worldwide. --- -## โค๏ธ  Community and Contributions +## ๐Ÿ“ฆ Features -The Proxmox Helper Scripts project is community-driven, and we highly appreciate any contributions โ€” whether it's through reporting bugs, suggesting features, improving documentation, or spreading the word. We are committed to maintaining transparency and sustainability in this open-source effort. +- **Interactive Setup**: Choose between simple and advanced options for configuring VMs and LXC containers. +- **Customizable Configurations**: Advanced setup for fine-tuning your environment. +- **Seamless Integration**: Works seamlessly with Proxmox VE for a smooth experience. +- **Community-driven**: Actively maintained and improved by the Proxmox community. -### ๐Ÿ’–  Donate to Support the Project +--- +## โœ… Requirements -We offer two donation options to help maintain and grow this project: - -- **Ko-Fi for tteck**: [Donate to tteck's wife](https://ko-fi.com/proxmoxhelperscripts) - All donations will go directly to Angie, wife of the founder of this project [who passed away in early November 2024](https://github.com/community-scripts/ProxmoxVE/discussions/237). -- **Ko-Fi for Community Edition**: [Donate to this project](https://ko-fi.com/community_scripts) - All funds will go towards script maintenance infrastructure and server costs. **Our most immediate need is funding testing infrastructure**. Your contributions help keep the project running. To honor tteck's legacy this project will also raise money for charity (cancer research, hospice care). Of the money donated to this project, 30% will be donated to charity. Income, expenditure and charitable donations will be disclosed annually in a transparent manner. - -
- -## ๐Ÿ’ฌ  Get Help - -Have a question or ran into an issue? Join the conversation and get help from fellow community members: - -- **Discord**: Join our [Proxmox Helper Scripts Discord server](https://discord.gg/UHrpNWGwkH) to chat with other users and get support. -- **GitHub Discussions**: [Ask questions or report issues](https://github.com/community-scripts/ProxmoxVE/discussions). - -
- -## ๐Ÿค  Found a bug or missing feature? - -If youโ€™ve encountered an issue or identified an area for improvement, please file a new issue on our [GitHub issues page](https://github.com/community-scripts/ProxmoxVE/issues). If youโ€™ve already found a solution or improvement, feel free to submit a pull request! Weโ€™d love to review and merge your contributions. - -
- -## โœ…  Requirements - -To use the Proxmox VE Helper-Scripts, your system should meet the following requirements: +Ensure your system meets the following prerequisites: - **Proxmox VE version**: 8.x or higher - **Linux**: Compatible with most distributions -- **Dependencies**: Ensure that your system has bash and curl installed. - -
- -## ๐Ÿ“œ  License - -This project is licensed under the terms of the [MIT License](LICENSE). +- **Dependencies**: bash and curl should be installed. --- -## ๐Ÿ“ข  Acknowledgments +## ๐Ÿš€ Installation + +To install the Proxmox Helper Scripts, follow these steps: + +1. Visit the [Website](https://helper-scripts.com/). +2. Search for the desired script, e.g., **"Home Assistant OS VM"**. +3. Copy the provided **Bash command** from the **"How To Install"** section. +4. Open the Proxmox shell on your **main node** and paste the command. +5. Press enter to start the installation! ๐Ÿš€ + +--- + +## โค๏ธ Community and Contributions + +We appreciate any contributions to the projectโ€”whether it's bug reports, feature requests, documentation improvements, or spreading the word. Your involvement helps keep the project alive and sustainable. + +## ๐Ÿ’– Donate to Support the Project +- **Ko-Fi for Community Edition**: [Donate to support this project](https://ko-fi.com/community_scripts) โ€“ Donations go towards maintaining the project, testing infrastructure, and charity (cancer research, hospice care). 30% of the funds will be donated to charity. + +--- + +## ๐Ÿ’ฌ Get Help + +Join our community for support: + +- **Discord**: Join our [Proxmox Helper Scripts Discord server](https://discord.gg/UHrpNWGwkH) for real-time support. +- **GitHub Discussions**: [Ask questions or report issues](https://github.com/community-scripts/ProxmoxVE/discussions). + +## ๐Ÿค Report a Bug or Feature Request + +If you encounter any issues or have suggestions for improvement, file a new issue on our [GitHub issues page](https://github.com/community-scripts/ProxmoxVE/issues). You can also submit pull requests with solutions or enhancements! + +--- + +## ๐Ÿ“œ License + +This project is licensed under the [MIT License](LICENSE). + +
+
+

+ Proxmoxยฎ is a registered trademark of Proxmox Server Solutions GmbH. +

-This community project is a memorial to the memory of [tteck](https://github.com/tteck). His foundational work created a thriving Proxmox community. Tteck worked on this project right until the end, even while in hospice. We are dedicated to keeping his vision alive and expanding upon it with the continued support of this vibrant community. -Proxmoxยฎ is a registered trademark of [Proxmox Server Solutions GmbH](https://www.proxmox.com/en/about/company). \ No newline at end of file From ed9c083ddaa2fae07cc4e631ab9a09e4d27463f8 Mon Sep 17 00:00:00 2001 From: "community-scripts-pr-app[bot]" <189241966+community-scripts-pr-app[bot]@users.noreply.github.com> Date: Fri, 17 Jan 2025 10:35:12 +0100 Subject: [PATCH 02/18] Update CHANGELOG.md (#1541) Co-authored-by: github-actions[bot] --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 98a625026..a3cad5721 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,10 @@ All LXC instances created using this repository come pre-installed with Midnight > [!IMPORTANT] Do not break established syntax in this file, as it is automatically updated by a Github Workflow +## 2025-01-17 + +### Changed + ## 2025-01-16 ### Changed From a6bd47e0c7099478e12ebb200a75adc9be8ccb3b Mon Sep 17 00:00:00 2001 From: chackl Date: Fri, 17 Jan 2025 13:59:57 +0100 Subject: [PATCH 03/18] Delete WAN input and forward accept (#1540) --- vm/openwrt.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/vm/openwrt.sh b/vm/openwrt.sh index 741062137..0afd786fb 100644 --- a/vm/openwrt.sh +++ b/vm/openwrt.sh @@ -498,8 +498,6 @@ send_line_to_vm "uci set network.lan.device=eth0" send_line_to_vm "uci set network.lan.proto=static" send_line_to_vm "uci set network.lan.ipaddr=${LAN_IP_ADDR}" send_line_to_vm "uci set network.lan.netmask=${LAN_NETMASK}" -send_line_to_vm "uci set firewall.@zone[1].input='ACCEPT'" -send_line_to_vm "uci set firewall.@zone[1].forward='ACCEPT'" send_line_to_vm "uci commit" send_line_to_vm "halt" msg_ok "Network interfaces have been successfully configured." From ce7bb6612d1f013227160e49971c53362640f41c Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 17 Jan 2025 16:04:30 +0100 Subject: [PATCH 04/18] Rename update_json_date.yml to update_json_date.yml.bak --- .../workflows/{update_json_date.yml => update_json_date.yml.bak} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{update_json_date.yml => update_json_date.yml.bak} (100%) diff --git a/.github/workflows/update_json_date.yml b/.github/workflows/update_json_date.yml.bak similarity index 100% rename from .github/workflows/update_json_date.yml rename to .github/workflows/update_json_date.yml.bak From 8cb63aa07ca4c3c3190897487644b88bdf1e305e Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> Date: Fri, 17 Jan 2025 19:43:48 +0100 Subject: [PATCH 05/18] Update apt-cacher-ng.sh: Typo (#1545) --- ct/apt-cacher-ng.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/apt-cacher-ng.sh b/ct/apt-cacher-ng.sh index 09c10d9d1..d8b85dd63 100644 --- a/ct/apt-cacher-ng.sh +++ b/ct/apt-cacher-ng.sh @@ -46,4 +46,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3142/acng-report.html{CL}" +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3142/acng-report.html${CL}" From bd301942c52640531c111885223a51946e392344 Mon Sep 17 00:00:00 2001 From: oOStroudyOo <111181956+oOStroudyOo@users.noreply.github.com> Date: Sat, 18 Jan 2025 07:03:51 +0000 Subject: [PATCH 06/18] Update VM Tags (#1562) * haos-vm.sh tag * debian-vm.sh tag * Update mikrotik-routeros.sh tag * Update nextcloud-vm.sh tag * Update openwrt.sh tag * Update owncloud-vm.sh tag * Update ubuntu2204-vm.sh tag * Update ubuntu2404-vm.sh tag * Add pimox-haos-vm.sh tag * Undo add tag Unable to test --- vm/debian-vm.sh | 2 +- vm/haos-vm.sh | 2 +- vm/mikrotik-routeros.sh | 2 +- vm/nextcloud-vm.sh | 2 +- vm/openwrt.sh | 2 +- vm/owncloud-vm.sh | 2 +- vm/ubuntu2204-vm.sh | 2 +- vm/ubuntu2404-vm.sh | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/vm/debian-vm.sh b/vm/debian-vm.sh index 007dffdf9..57d373fd9 100644 --- a/vm/debian-vm.sh +++ b/vm/debian-vm.sh @@ -402,7 +402,7 @@ done msg_info "Creating a Debian 12 VM" qm create $VMID -agent 1${MACHINE} -tablet 0 -localtime 1 -bios ovmf${CPU_TYPE} -cores $CORE_COUNT -memory $RAM_SIZE \ - -name $HN -tags proxmox-helper-scripts -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci + -name $HN -tags community-script -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci pvesm alloc $STORAGE $VMID $DISK0 4M 1>&/dev/null qm importdisk $VMID ${FILE} $STORAGE ${DISK_IMPORT:-} 1>&/dev/null qm set $VMID \ diff --git a/vm/haos-vm.sh b/vm/haos-vm.sh index caaa9c856..87ba35c90 100644 --- a/vm/haos-vm.sh +++ b/vm/haos-vm.sh @@ -444,7 +444,7 @@ done msg_ok "Extracted KVM Disk Image" msg_info "Creating HAOS VM" qm create $VMID -agent 1${MACHINE} -tablet 0 -localtime 1 -bios ovmf${CPU_TYPE} -cores $CORE_COUNT -memory $RAM_SIZE \ - -name $HN -tags proxmox-helper-scripts -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci + -name $HN -tags community-script -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci pvesm alloc $STORAGE $VMID $DISK0 4M 1>&/dev/null qm importdisk $VMID ${FILE%.*} $STORAGE ${DISK_IMPORT:-} 1>&/dev/null qm set $VMID \ diff --git a/vm/mikrotik-routeros.sh b/vm/mikrotik-routeros.sh index 3a232fcd7..816dea9f2 100644 --- a/vm/mikrotik-routeros.sh +++ b/vm/mikrotik-routeros.sh @@ -269,7 +269,7 @@ DISK_REF="${STORAGE}:${DISK_REF:-}${DISK_VAR:-}" msg_ok "Extracted Mikrotik RouterOS CHR Disk Image" msg_info "Creating Mikrotik RouterOS CHR VM" qm create $VMID -tablet 0 -localtime 1 -cores $CORE_COUNT -memory $RAM_SIZE -name $HN \ - -tags proxmox-helper-scripts -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU \ + -tags community-script -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU \ -onboot 1 -ostype l26 -scsihw virtio-scsi-pci qm importdisk $VMID ${FILE%.*} $STORAGE ${DISK_IMPORT:-} 1>&/dev/null qm set $VMID \ diff --git a/vm/nextcloud-vm.sh b/vm/nextcloud-vm.sh index f2590c85a..d93b7b95f 100644 --- a/vm/nextcloud-vm.sh +++ b/vm/nextcloud-vm.sh @@ -401,7 +401,7 @@ done msg_info "Creating a $NAME" qm create $VMID -agent 1${MACHINE} -tablet 0 -localtime 1 -bios seabios${CPU_TYPE} -cores $CORE_COUNT -memory $RAM_SIZE \ - -name $HN -tags proxmox-helper-scripts -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci + -name $HN -tags community-script -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci pvesm alloc $STORAGE $VMID $DISK0 4M 1>&/dev/null pvesm alloc $STORAGE $VMID $DISK1 12G 1>&/dev/null qm importdisk $VMID ${FILE} $STORAGE ${DISK_IMPORT:-} 1>&/dev/null diff --git a/vm/openwrt.sh b/vm/openwrt.sh index 0afd786fb..f7488f958 100644 --- a/vm/openwrt.sh +++ b/vm/openwrt.sh @@ -475,7 +475,7 @@ qm set $VMID \ -efidisk0 ${DISK0_REF},efitype=4m,size=4M \ -scsi0 ${DISK1_REF},size=512M \ -boot order=scsi0 \ - -tags proxmox-helper-scripts \ + -tags community-script \ -description "
# OpenWRT diff --git a/vm/owncloud-vm.sh b/vm/owncloud-vm.sh index 99ca81c59..e004866c1 100644 --- a/vm/owncloud-vm.sh +++ b/vm/owncloud-vm.sh @@ -401,7 +401,7 @@ done msg_info "Creating a $NAME" qm create $VMID -agent 1${MACHINE} -tablet 0 -localtime 1 -bios seabios${CPU_TYPE} -cores $CORE_COUNT -memory $RAM_SIZE \ - -name $HN -tags proxmox-helper-scripts -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci + -name $HN -tags community-script -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci pvesm alloc $STORAGE $VMID $DISK0 4M 1>&/dev/null pvesm alloc $STORAGE $VMID $DISK1 12G 1>&/dev/null qm importdisk $VMID ${FILE} $STORAGE ${DISK_IMPORT:-} 1>&/dev/null diff --git a/vm/ubuntu2204-vm.sh b/vm/ubuntu2204-vm.sh index b4fa0fb66..f20ca100e 100644 --- a/vm/ubuntu2204-vm.sh +++ b/vm/ubuntu2204-vm.sh @@ -402,7 +402,7 @@ done msg_info "Creating a Ubuntu 22.04 VM" qm create $VMID -agent 1${MACHINE} -tablet 0 -localtime 1 -bios ovmf${CPU_TYPE} -cores $CORE_COUNT -memory $RAM_SIZE \ - -name $HN -tags proxmox-helper-scripts -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci + -name $HN -tags community-script -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci pvesm alloc $STORAGE $VMID $DISK0 4M 1>&/dev/null qm importdisk $VMID ${FILE} $STORAGE ${DISK_IMPORT:-} 1>&/dev/null qm set $VMID \ diff --git a/vm/ubuntu2404-vm.sh b/vm/ubuntu2404-vm.sh index 01cc30150..e4fea83f0 100644 --- a/vm/ubuntu2404-vm.sh +++ b/vm/ubuntu2404-vm.sh @@ -392,7 +392,7 @@ done msg_info "Creating a Ubuntu 24.04 VM" qm create $VMID -agent 1${MACHINE} -tablet 0 -localtime 1 -bios ovmf${CPU_TYPE} -cores $CORE_COUNT -memory $RAM_SIZE \ - -name $HN -tags proxmox-helper-scripts -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci + -name $HN -tags community-script -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci pvesm alloc $STORAGE $VMID $DISK0 4M 1>&/dev/null qm importdisk $VMID ${FILE} $STORAGE ${DISK_IMPORT:-} 1>&/dev/null qm set $VMID \ From 643e0f5ac860d7fb2783279bd5a9d37f70933b32 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Sat, 18 Jan 2025 08:57:56 +0100 Subject: [PATCH 07/18] Update CHANGELOG.md --- CHANGELOG.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3cad5721..dce449ee3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,9 +16,6 @@ All LXC instances created using this repository come pre-installed with Midnight > [!IMPORTANT] Do not break established syntax in this file, as it is automatically updated by a Github Workflow -## 2025-01-17 - -### Changed ## 2025-01-16 From e683fd900f37c132b47a5b5f090db14353c492d7 Mon Sep 17 00:00:00 2001 From: "community-scripts-pr-app[bot]" <189241966+community-scripts-pr-app[bot]@users.noreply.github.com> Date: Sat, 18 Jan 2025 09:00:29 +0100 Subject: [PATCH 08/18] Update CHANGELOG.md (#1547) Co-authored-by: github-actions[bot] --- CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dce449ee3..9f1f93e9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,19 @@ All LXC instances created using this repository come pre-installed with Midnight Do not break established syntax in this file, as it is automatically updated by a Github Workflow +## 2025-01-18 + +### Changed + +### ๐Ÿ’ฅ Breaking Changes + +- Update Openwrt: Delete lines that do WAN input and forward accept [@chackl1990](https://github.com/chackl1990) ([#1540](https://github.com/community-scripts/ProxmoxVE/pull/1540)) + +### ๐Ÿš€ Updated Scripts + +- Update VM Tags [@oOStroudyOo](https://github.com/oOStroudyOo) ([#1562](https://github.com/community-scripts/ProxmoxVE/pull/1562)) +- Update apt-cacher-ng.sh: Typo/Missing $ [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#1545](https://github.com/community-scripts/ProxmoxVE/pull/1545)) + ## 2025-01-16 ### Changed From d1f5556ce36c2d7779add9b09e1cc9447de41ad4 Mon Sep 17 00:00:00 2001 From: Gerhard Burger Date: Sat, 18 Jan 2025 11:39:02 +0100 Subject: [PATCH 09/18] Fix linkwarden update (#1565) --- ct/linkwarden.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/linkwarden.sh b/ct/linkwarden.sh index 5c0435e09..311f28e44 100644 --- a/ct/linkwarden.sh +++ b/ct/linkwarden.sh @@ -40,6 +40,7 @@ function update_script() { msg_info "Updating ${APP} to ${RELEASE}" cd /opt mv /opt/linkwarden/.env /opt/.env + rm -rf /opt/linkwarden RELEASE=$(curl -s https://api.github.com/repos/linkwarden/linkwarden/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') wget -q "https://github.com/linkwarden/linkwarden/archive/refs/tags/${RELEASE}.zip" unzip -q ${RELEASE}.zip @@ -59,7 +60,6 @@ function update_script() { msg_ok "Started ${APP}" msg_info "Cleaning up" rm -rf /opt/${RELEASE}.zip - rm -rf /opt/linkwarden_bak msg_ok "Cleaned" msg_ok "Updated Successfully" else @@ -75,4 +75,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" From 75590a8ff81a18f40bbb3fffd7de2e1081192b54 Mon Sep 17 00:00:00 2001 From: Max Slotov Date: Sat, 18 Jan 2025 12:39:23 +0200 Subject: [PATCH 10/18] [jellyseerr] Update nodejs if not up-to-date (#1563) * [jellyseerr] Update nodejs if not up-to-date * simplify if --- ct/jellyseerr.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ct/jellyseerr.sh b/ct/jellyseerr.sh index 5403ae589..96ea2ec81 100644 --- a/ct/jellyseerr.sh +++ b/ct/jellyseerr.sh @@ -34,6 +34,22 @@ function update_script() { exit fi + if [ "$(node -v | cut -c2-3)" -ne 22 ]; then + msg_info "Updating Node.js Repository" + echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" >/etc/apt/sources.list.d/nodesource.list + msg_ok "Updating Node.js Repository" + + msg_info "Updating Packages" + apt-get update &>/dev/null + apt-get -y upgrade &>/dev/null + msg_ok "Updating Packages" + + msg_info "Cleaning up" + apt-get -y autoremove + apt-get -y autoclean + msg_ok "Cleaning up" + fi + if ! command -v pnpm &> /dev/null; then msg_error "pnpm not found. Installing..." npm install -g pnpm &>/dev/null From 81b271a9ef0dbe10548ee6dcdb52059ef74aa7f1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 18 Jan 2025 13:30:09 +0100 Subject: [PATCH 11/18] Update .app-headers file (#1567) --- misc/.app-headers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/.app-headers b/misc/.app-headers index 847a4ebfc..642c14ae0 100644 --- a/misc/.app-headers +++ b/misc/.app-headers @@ -1,4 +1,4 @@ -### Generated on 01-16-2025 +### Generated on 01-18-2025 ################################################## ### 2fauth.sh From b04dc0261b9979b5fb75a9fea3f94d7c82f1dbd4 Mon Sep 17 00:00:00 2001 From: "community-scripts-pr-app[bot]" <189241966+community-scripts-pr-app[bot]@users.noreply.github.com> Date: Sat, 18 Jan 2025 19:14:34 +0100 Subject: [PATCH 12/18] Update CHANGELOG.md (#1566) Co-authored-by: github-actions[bot] --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f1f93e9f..bc871e850 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,8 @@ Do not break established syntax in this file, as it is automatically updated by ### ๐Ÿš€ Updated Scripts +- Fix linkwarden update [@burgerga](https://github.com/burgerga) ([#1565](https://github.com/community-scripts/ProxmoxVE/pull/1565)) +- [jellyseerr] Update nodejs if not up-to-date [@makstech](https://github.com/makstech) ([#1563](https://github.com/community-scripts/ProxmoxVE/pull/1563)) - Update VM Tags [@oOStroudyOo](https://github.com/oOStroudyOo) ([#1562](https://github.com/community-scripts/ProxmoxVE/pull/1562)) - Update apt-cacher-ng.sh: Typo/Missing $ [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#1545](https://github.com/community-scripts/ProxmoxVE/pull/1545)) From 2f20db8a42fe740d963a6fd140892a5188e7e626 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Sat, 18 Jan 2025 20:54:11 +0100 Subject: [PATCH 13/18] breaking change: homeassistant upgrade os and python3 (#1550) * breaking change: homeassistant upgrade os and python3 * update json to new date and new ressource values --- ct/homeassistant-core.sh | 27 ++++++++++++------------ install/homeassistant-core-install.sh | 30 ++++++++++++++------------- json/homeassistant-core.json | 12 +++++------ 3 files changed, 35 insertions(+), 34 deletions(-) diff --git a/ct/homeassistant-core.sh b/ct/homeassistant-core.sh index f54bf4fdc..df5df42d1 100644 --- a/ct/homeassistant-core.sh +++ b/ct/homeassistant-core.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) -# Copyright (c) 2021-2025 tteck -# Author: tteck (tteckster) +# Copyright (c) 2021-2025 community-scripts ORG +# Author: tteck (tteckster) | Co-Author: MickLesk (CanbiZ) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.home-assistant.io/ @@ -9,10 +9,10 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m APP="Home Assistant-Core" var_tags="automation;smarthome" var_cpu="2" -var_ram="1024" -var_disk="8" +var_ram="2048" +var_disk="10" var_os="ubuntu" -var_version="24.04" +var_version="24.10" var_unprivileged="1" # App Output & Base Settings @@ -51,10 +51,6 @@ function update_script() { echo -e "${GN}Updating to Stable Version${CL}" BR="" fi - if [[ "$PY" =~ ^python3\.(11|12)\.[0-9]+$ ]]; then - echo -e "โš ๏ธ Home Assistant will soon require Python 3.13.x"; - fi - msg_info "Stopping Home Assistant" systemctl stop homeassistant msg_ok "Stopped Home Assistant" @@ -75,7 +71,7 @@ function update_script() { if [ "$UPD" == "2" ]; then msg_info "Installing Home Assistant Community Store (HACS)" apt update &>/dev/null - apt install unzip &>/dev/null + apt install -y unzip &>/dev/null cd .homeassistant bash <(curl -fsSL https://get.hacs.xyz) &>/dev/null msg_ok "Installed Home Assistant Community Store (HACS)" @@ -102,16 +98,19 @@ function update_script() { msg_ok "Installed FileBrowser" msg_info "Creating Service" - service_path="/etc/systemd/system/filebrowser.service" - echo "[Unit] + cat < /etc/systemd/system/filebrowser.service +[Unit] Description=Filebrowser After=network-online.target + [Service] User=root WorkingDirectory=/root/ ExecStart=/usr/local/bin/filebrowser -r /root/.homeassistant + [Install] -WantedBy=default.target" >$service_path +WantedBy=default.target +EOF systemctl enable --now -q filebrowser.service msg_ok "Created Service" @@ -130,4 +129,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8123${CL}" +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8123${CL}" \ No newline at end of file diff --git a/install/homeassistant-core-install.sh b/install/homeassistant-core-install.sh index e5cca6873..5c27c4aee 100644 --- a/install/homeassistant-core-install.sh +++ b/install/homeassistant-core-install.sh @@ -44,34 +44,36 @@ $STD apt-get install -y \ libavfilter-dev \ libmariadb-dev-compat \ libatlas-base-dev \ - software-properties-common + software-properties-common \ + libmariadb-dev \ + pkg-config msg_ok "Installed Dependencies" -msg_info "Setup Python3" -$STD add-apt-repository -y ppa:deadsnakes/ppa +msg_info "Setup Python3/pip" $STD apt-get update +$STD rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED +$STD apt-get remove --purge -y python3.12 python3.12-dev python3.12-venv + $STD apt-get install -y \ - python3.13-* \ + python3.13 \ python3-pip \ python3.13-dev \ python3.13-venv -msg_ok "Setup Python3" -msg_info "Installing UV" -$STD pip install uv -msg_ok "Installed UV" +ln -sf /usr/bin/python3.13 /usr/bin/python3 +msg_ok "Setup Python3" msg_info "Setting up Home Assistant-Core environment" mkdir /srv/homeassistant cd /srv/homeassistant -uv venv . &>/dev/null +python3 -m venv . source bin/activate -msg_ok "Created virtual environment with UV" +msg_ok "Created virtual environment" -msg_info "Installing Home Assistant-Core and packages" -$STD uv pip install webrtcvad wheel homeassistant mysqlclient psycopg2-binary isal +msg_info "Installing Home Assistant-Core" +$STD python3 -m pip install webrtcvad wheel homeassistant mysqlclient psycopg2-binary isal mkdir -p /root/.homeassistant -msg_ok "Installed Home Assistant-Core and required packages" +msg_ok "Installed Home Assistant-Core" msg_info "Creating Service" cat </etc/systemd/system/homeassistant.service @@ -97,4 +99,4 @@ customize msg_info "Cleaning up" $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" +msg_ok "Cleaned" \ No newline at end of file diff --git a/json/homeassistant-core.json b/json/homeassistant-core.json index ff4feb6d1..ef362fe59 100644 --- a/json/homeassistant-core.json +++ b/json/homeassistant-core.json @@ -4,7 +4,7 @@ "categories": [ 2 ], - "date_created": "2024-04-29", + "date_created": "2025-01-17", "type": "ct", "updateable": true, "privileged": false, @@ -19,10 +19,10 @@ "script": "ct/homeassistant-core.sh", "resources": { "cpu": 2, - "ram": 1024, - "hdd": 8, + "ram": 2048, + "hdd": 10, "os": "ubuntu", - "version": "24.04" + "version": "24.10" } } ], @@ -40,7 +40,7 @@ "type": "warning" }, { - "text": "Use Ubuntu 24.04 ONLY", + "text": "Use Ubuntu 24.10 ONLY", "type": "warning" }, { @@ -48,4 +48,4 @@ "type": "info" } ] -} \ No newline at end of file +} From 5c11b67507f058ff44d9a4c20b3cf882376e983b Mon Sep 17 00:00:00 2001 From: Egon Date: Sat, 18 Jan 2025 20:54:43 +0100 Subject: [PATCH 14/18] added cifs support in ubuntu2404-vm.sh (#1461) added cifs to case $STORAGE_TYPE in nfs | dir | cifs) So VMs can be deployed on cifs shares --- vm/ubuntu2404-vm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/ubuntu2404-vm.sh b/vm/ubuntu2404-vm.sh index e4fea83f0..c789ecc9b 100644 --- a/vm/ubuntu2404-vm.sh +++ b/vm/ubuntu2404-vm.sh @@ -370,7 +370,7 @@ msg_ok "Downloaded ${CL}${BL}${FILE}${CL}" STORAGE_TYPE=$(pvesm status -storage $STORAGE | awk 'NR>1 {print $2}') case $STORAGE_TYPE in -nfs | dir) +nfs | dir | cifs) DISK_EXT=".qcow2" DISK_REF="$VMID/" DISK_IMPORT="-format qcow2" From 0b73d9f6893a781458677e039d750246c8756ea8 Mon Sep 17 00:00:00 2001 From: "community-scripts-pr-app[bot]" <189241966+community-scripts-pr-app[bot]@users.noreply.github.com> Date: Sat, 18 Jan 2025 20:57:47 +0100 Subject: [PATCH 15/18] [Github Action] Update CHANGELOG.md (#1573) * Update CHANGELOG.md * update * update --------- Co-authored-by: github-actions[bot] Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com> --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc871e850..fff5ec0b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,10 +23,12 @@ Do not break established syntax in this file, as it is automatically updated by ### ๐Ÿ’ฅ Breaking Changes +- breaking change: homeassistant upgrade os and python3 **Please First read guide!** [@MickLesk](https://github.com/MickLesk) ([#1550](https://github.com/community-scripts/ProxmoxVE/pull/1550)) - Update Openwrt: Delete lines that do WAN input and forward accept [@chackl1990](https://github.com/chackl1990) ([#1540](https://github.com/community-scripts/ProxmoxVE/pull/1540)) ### ๐Ÿš€ Updated Scripts +- added cifs support in ubuntu2404-vm.sh [@plonxyz](https://github.com/plonxyz) ([#1461](https://github.com/community-scripts/ProxmoxVE/pull/1461)) - Fix linkwarden update [@burgerga](https://github.com/burgerga) ([#1565](https://github.com/community-scripts/ProxmoxVE/pull/1565)) - [jellyseerr] Update nodejs if not up-to-date [@makstech](https://github.com/makstech) ([#1563](https://github.com/community-scripts/ProxmoxVE/pull/1563)) - Update VM Tags [@oOStroudyOo](https://github.com/oOStroudyOo) ([#1562](https://github.com/community-scripts/ProxmoxVE/pull/1562)) From 0e443536ccc7d7184f6cacea647a9a4851fbe018 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Sat, 18 Jan 2025 21:07:19 +0100 Subject: [PATCH 16/18] update --- ct/homeassistant-core.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ct/homeassistant-core.sh b/ct/homeassistant-core.sh index df5df42d1..4e601361e 100644 --- a/ct/homeassistant-core.sh +++ b/ct/homeassistant-core.sh @@ -26,6 +26,13 @@ catch_errors function update_script() { header_info + + # OS Check + if ! lsb_release -d | grep -q "Ubuntu 24.10"; then + msg_error "Wrong OS detected. This script only supports Ubuntu 24.10." + msg_error "Read Guide: https://github.com/community-scripts/ProxmoxVE/discussions/1549" + exit 1 + fi check_container_storage check_container_resources if [[ ! -d /srv/homeassistant ]]; then @@ -57,7 +64,7 @@ function update_script() { msg_info "Updating Home Assistant" source /srv/homeassistant/bin/activate - uv pip install ${BR}--upgrade homeassistant &>/dev/null + pip install ${BR}--upgrade homeassistant &>/dev/null msg_ok "Updated Home Assistant" msg_info "Starting Home Assistant" From b97d40bf5aefa9b678fae796be61d11df348975f Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Sat, 18 Jan 2025 21:11:26 +0100 Subject: [PATCH 17/18] update --- .github/CONTRIBUTING.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 3b1027b12..b820af768 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -2,6 +2,7 @@ # Community Scripts Contribution Guide ## **Welcome to the communty-scripts Repository!** + ๐Ÿ“œ These documents outline the essential coding standards for all our scripts and JSON files. Adhering to these standards ensures that our codebase remains consistent, readable, and maintainable. By following these guidelines, we can improve collaboration, reduce errors, and enhance the overall quality of our project. ### Why Coding Standards Matter From f8f166e26f3033461e4c84d2f050e4c07a4278e6 Mon Sep 17 00:00:00 2001 From: "community-scripts-pr-app[bot]" <189241966+community-scripts-pr-app[bot]@users.noreply.github.com> Date: Sat, 18 Jan 2025 21:12:13 +0100 Subject: [PATCH 18/18] Update CHANGELOG.md (#1577) Co-authored-by: github-actions[bot] --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fff5ec0b1..3b356eb49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,7 +23,7 @@ Do not break established syntax in this file, as it is automatically updated by ### ๐Ÿ’ฅ Breaking Changes -- breaking change: homeassistant upgrade os and python3 **Please First read guide!** [@MickLesk](https://github.com/MickLesk) ([#1550](https://github.com/community-scripts/ProxmoxVE/pull/1550)) +- **READ GUIDE FIRST** breaking change: Homeassistant-Core upgrade os and python3 [@MickLesk](https://github.com/MickLesk) ([#1550](https://github.com/community-scripts/ProxmoxVE/pull/1550)) - Update Openwrt: Delete lines that do WAN input and forward accept [@chackl1990](https://github.com/chackl1990) ([#1540](https://github.com/community-scripts/ProxmoxVE/pull/1540)) ### ๐Ÿš€ Updated Scripts