mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 19:05:09 +00:00
Update
This commit is contained in:
parent
2ddd79de1a
commit
730abf5477
2
.github/CONTRIBUTOR_GUIDE/ct/AppName.md
vendored
2
.github/CONTRIBUTOR_GUIDE/ct/AppName.md
vendored
@ -132,7 +132,7 @@ if [[ ! -d /opt/snipe-it ]]; then
|
||||
|
||||
Example with a Github Release:
|
||||
```bash
|
||||
RELEASE=$(curl -s https://api.github.com/repos/snipe/snipe-it/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||
RELEASE=$(curl -fsSL https://api.github.com/repos/snipe/snipe-it/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
|
||||
msg_info "Updating ${APP} to v${RELEASE}"
|
||||
#DO UPDATE
|
||||
|
@ -96,7 +96,7 @@ php8.2-bcmath php8.2-common php8.2-ctype
|
||||
|
||||
Example for a git Release:
|
||||
```bash
|
||||
RELEASE=$(curl -s https://api.github.com/repos/snipe/snipe-it/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||
RELEASE=$(curl -fsSL https://api.github.com/repos/snipe/snipe-it/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||
wget -q "https://github.com/snipe/snipe-it/archive/refs/tags/v${RELEASE}.zip"
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user