Compare commits

...

3 Commits

Author SHA1 Message Date
github-actions[bot] a38712fac0 Update CHANGELOG.md 2026-07-08 11:04:31 +00:00
CanbiZ (MickLesk) 6e55269d9f BabyBuddy: Harden update script (#15642)
Ensure cleanup runs from `/opt/babybuddy` before deleting old files, add `--` to the removal command for safer argument handling, and run `manage.py makemigrations` before `migrate` so database updates are applied reliably during upgrades.
2026-07-08 21:04:13 +10:00
community-scripts-pr-app[bot] e64f5a041d Update CHANGELOG.md (#15644)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-07-07 20:46:17 +00:00
2 changed files with 17 additions and 1 deletions
+14
View File
@@ -499,6 +499,20 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
</details> </details>
## 2026-07-08
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- BabyBuddy: Harden update script [@MickLesk](https://github.com/MickLesk) ([#15642](https://github.com/community-scripts/ProxmoxVE/pull/15642))
## 2026-07-07
### 🆕 New Scripts
- Forgejo-Runner ([#15046](https://github.com/community-scripts/ProxmoxVE/pull/15046))
## 2026-07-06 ## 2026-07-06
### 🚀 Updated Scripts ### 🚀 Updated Scripts
+3 -1
View File
@@ -40,7 +40,8 @@ function update_script() {
create_backup /opt/babybuddy/babybuddy/settings/production.py create_backup /opt/babybuddy/babybuddy/settings/production.py
msg_info "Cleaning old files" msg_info "Cleaning old files"
find . -mindepth 1 -maxdepth 1 ! -name '.venv' -exec rm -rf {} + cd /opt/babybuddy || exit
find . -mindepth 1 -maxdepth 1 ! -name '.venv' -exec rm -rf -- {} +
msg_ok "Cleaned old files" msg_ok "Cleaned old files"
fetch_and_deploy_gh_release "babybuddy" "babybuddy/babybuddy" "tarball" fetch_and_deploy_gh_release "babybuddy" "babybuddy/babybuddy" "tarball"
@@ -51,6 +52,7 @@ function update_script() {
source .venv/bin/activate source .venv/bin/activate
$STD uv pip install -r requirements.txt $STD uv pip install -r requirements.txt
export DJANGO_SETTINGS_MODULE=babybuddy.settings.production export DJANGO_SETTINGS_MODULE=babybuddy.settings.production
$STD python manage.py makemigrations
$STD python manage.py migrate $STD python manage.py migrate
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"