mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-08 20:11:02 +02:00
fix(bambuddy): add mkdir before data restore & add ffmpeg dependency
- Add mkdir -p before restoring data dir to prevent data loss on update (CLEAN_INSTALL=1 wipes target dir including SQLite DB) - Add ffmpeg as dependency for printer cam support - Add ensure_dependencies ffmpeg to update path for existing containers Fixes #13598, Fixes #13599
This commit is contained in:
@@ -29,6 +29,8 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
ensure_dependencies ffmpeg
|
||||
|
||||
if check_for_gh_release "bambuddy" "maziggy/bambuddy"; then
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop bambuddy
|
||||
@@ -54,6 +56,7 @@ function update_script() {
|
||||
msg_ok "Rebuilt Frontend"
|
||||
|
||||
msg_info "Restoring Configuration and Data"
|
||||
mkdir -p /opt/bambuddy/data
|
||||
cp /opt/bambuddy.env.bak /opt/bambuddy/.env
|
||||
cp -r /opt/bambuddy_data_bak/. /opt/bambuddy/data/
|
||||
rm -f /opt/bambuddy.env.bak
|
||||
|
||||
Reference in New Issue
Block a user