Compare commits

..

1 Commits

Author SHA1 Message Date
MickLesk 9bc17589e8 InvenTree: populate database engine/name in config.yaml before invoke update 2026-07-26 12:18:36 +02:00
3 changed files with 5 additions and 8 deletions
-6
View File
@@ -510,12 +510,6 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
## 2026-07-26
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- [endurain] add node update to update script [@johanngrobe](https://github.com/johanngrobe) ([#16014](https://github.com/community-scripts/ProxmoxVE/pull/16014))
## 2026-07-25
### 🚀 Updated Scripts
-2
View File
@@ -34,8 +34,6 @@ function update_script() {
systemctl stop endurain
msg_ok "Stopped Service"
NODE_VERSION="24" setup_nodejs
create_backup /opt/endurain/.env /opt/endurain/frontend/dist/env.js
CLEAN_INSTALL=1 fetch_and_deploy_codeberg_release "endurain" "endurain-project/endurain" "tarball" "latest" "/opt/endurain"
+5
View File
@@ -30,6 +30,11 @@ msg_ok "Installed InvenTree"
msg_info "Configuring InvenTree"
if [[ -f /etc/inventree/config.yaml ]]; then
sed -i "s|site_url:.*|site_url: http://${LOCAL_IP}|" /etc/inventree/config.yaml
if ! grep -q "^ engine:" /etc/inventree/config.yaml; then
mkdir -p /home/inventree/data
chown inventree:inventree /home/inventree/data
sed -i "/^database:$/a\\ engine: sqlite3\\n name: '/home/inventree/data/database.sqlite3'" /etc/inventree/config.yaml
fi
fi
$STD inventree run invoke update
msg_ok "Configured InvenTree"