Compare commits

...

6 Commits

Author SHA1 Message Date
Paul
db5a939b7a
Merge 84e5fafd0d into 9330e9a640 2025-01-08 13:50:10 +01:00
community-scripts-pr-app[bot]
9330e9a640
Update CHANGELOG.md (#1324)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-08 13:36:05 +01:00
Reinaldo Díaz Lugo
5fc783da67
update postgresql json to add post install password setup (#1318)
Some checks failed
Create Changelog Pull Request / update-changelog-pull-request (push) Waiting to run
Shellcheck / Shellcheck (push) Waiting to run
Validate script formatting / Check changed files (push) Waiting to run
Validate scripts / Check changed files (push) Waiting to run
Frontend CI/CD / build (push) Has been cancelled
Frontend CI/CD / deploy (push) Has been cancelled
2025-01-08 08:14:15 +01:00
community-scripts-pr-app[bot]
670d64ec43
Update CHANGELOG.md (#1320)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-08 08:13:40 +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 35 additions and 1 deletions

View File

@ -16,6 +16,14 @@ 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-08
### Changed
### 🌐 Website
- update postgresql json to add post install password setup [@rdiazlugo](https://github.com/rdiazlugo) ([#1318](https://github.com/community-scripts/ProxmoxVE/pull/1318))
## 2025-01-07
### Changed
@ -26,6 +34,7 @@ Do not break established syntax in this file, as it is automatically updated by
### 🧰 Maintenance
- fix: permissions of validate pipelines [@se-bastiaan](https://github.com/se-bastiaan) ([#1316](https://github.com/community-scripts/ProxmoxVE/pull/1316))
- Set Execution Rights for GH-Action: Validate Scripts [@MickLesk](https://github.com/MickLesk) ([#1312](https://github.com/community-scripts/ProxmoxVE/pull/1312))
## 2025-01-06

View File

@ -30,5 +30,10 @@
"username": null,
"password": null
},
"notes": []
"notes": [
{
"text": "Set a password after installation for postgres user by running `echo \"ALTER USER postgres with encrypted password 'your_password';\" | sudo -u postgres psql`",
"type": "info"
}
]
}

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"
}