Compare commits

...

5 Commits

Author SHA1 Message Date
Paul
16aac643d9
Merge 84e5fafd0d into ab10013fbe 2025-01-06 23:02:22 -03:00
community-scripts-pr-app[bot]
ab10013fbe
Update CHANGELOG.md (#1300)
Some checks are pending
Create Changelog Pull Request / update-changelog-pull-request (push) Waiting to run
Shellcheck / Shellcheck (push) Waiting to run
Validate scripts / Check changed files (push) Waiting to run
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-06 21:42:35 +01:00
CanbiZ
9abd8bf9aa
Fix Tag in HyperHDR Script (#1299) 2025-01-06 21:41:23 +01:00
Paul William
84e5fafd0d Simplified functions, as per the feedback, also use only wget 2024-11-19 21:28:44 +13:00
Paul William
24a7149794 Adds utility functions to download the latest release of a project from github and untars it. Uses curls and standard gnu tools. 2024-11-18 21:55:50 +13:00
3 changed files with 22 additions and 1 deletions

View File

@ -27,6 +27,7 @@ Do not break established syntax in this file, as it is automatically updated by
### 🚀 Updated Scripts
- Fix Tag in HyperHDR Script [@MickLesk](https://github.com/MickLesk) ([#1299](https://github.com/community-scripts/ProxmoxVE/pull/1299))
- [Fix]: Fixed rm Bug in pf2etools [@MickLesk](https://github.com/MickLesk) ([#1292](https://github.com/community-scripts/ProxmoxVE/pull/1292))
- Fix: Homebox Update Script [@MickLesk](https://github.com/MickLesk) ([#1284](https://github.com/community-scripts/ProxmoxVE/pull/1284))
- Add ca-certificates for Install (Frigate) [@MickLesk](https://github.com/MickLesk) ([#1282](https://github.com/community-scripts/ProxmoxVE/pull/1282))

View File

@ -7,7 +7,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m
# App Default Values
APP="HyperHDR"
var_tags="ambient lightning"
var_tags="ambient-lightning"
var_cpu="2"
var_ram="2048"
var_disk="4"

View File

@ -256,3 +256,23 @@ EOF
echo "bash -c \"\$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/${app}.sh)\"" >/usr/bin/update
chmod +x /usr/bin/update
}
# This function downloads the latest release of a GitHub repository
github_download_latest_release() {
local user="$1"
local repo="$2"
local output_file="$3"
local tarball_url=$($STD wget -qLO - "https://api.github.com/repos/$user/$repo/releases/latest" | grep '"tarball_url":' | cut -d '"' -f 4)
$STD wget -qLO "$output_file" "$tarball_url"
}
# This function extracts a GitHub release tarball into a target directory
github_extract_latest_release() {
local user="$1"
local repo="$2"
local output_directory="$3"
mkdir -p "$output_directory"
github_download_latest_release "$user" "$repo" "/tmp/$repo.tar.gz"
tar -xzf "/tmp/$repo.tar.gz" -C "$output_directory" --strip-components 1
rm "/tmp/$repo.tar.gz"
}