-
-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] AdventureLog update does not update #1331
Comments
So
Becomes
|
Only if you want to delete all your media for adventures. |
I have written a backup script for myself that is specific to the Proxmox LXC configuration. Not sure if this would be useful, and it of course also doesn't include any future updates to save locations: #!/bin/bash
# Load environment variables
source /opt/adventurelog/backend/server/.env
# Configuration
BACKUP_DIR="$PWD"
MEDIA_DIR="/opt/adventurelog/backend/server/media"
DATE=$(date +%Y-%m-%d_%H-%M-%S)
TEMP_DIR=$(mktemp -d)
# Backup PostgreSQL database
echo "Backing up PostgreSQL database..."
PGPASSWORD="$PGPASSWORD" pg_dump -h "$PGHOST" -U "$PGUSER" -Fc "$PGDATABASE" > "$TEMP_DIR/db_backup.dump"
# Backup media files
echo "Backing up media files..."
tar -czf "$TEMP_DIR/media_backup.tar.gz" "$MEDIA_DIR"
# Backup .env files
echo "Backing up environment configurations..."
cp /opt/adventurelog/backend/server/.env "$TEMP_DIR/server.env"
cp /opt/adventurelog/frontend/.env "$TEMP_DIR/frontend.env"
# Create final tar archive
echo "Creating final backup archive..."
tar -czf "$BACKUP_DIR/adventurelog_backup_$DATE.tar.gz" -C "$TEMP_DIR" .
# Cleanup temporary directory
rm -rf "$TEMP_DIR"
echo "Backup completed successfully! Created: adventurelog_backup_$DATE.tar.gz" |
same issue here |
I have submitted a PR to fix the update script. If this gets accepted, that means that you have to go into your Proxmox LXC and before updating, change the version number in |
great, much appreciated! |
β Have you read and understood the above guidelines?
yes
π What is the name of the script you are using?
AdventureLog
π What was the exact command used to execute the script?
update
π Provide a clear and concise description of the issue.
The adventurelog update script does not correctly update the script on the LXC.
Issue in Update script
I have identified the issue to be in the update script.
This line:
ProxmoxVE/ct/adventurelog.sh
Line 47 in e1daaa6
moves the folder AdventureLog-v.0.8.0 into the folder, but the intention is to update the files.
Comparison to other scripts
Other scripts either use tar to directly or unzip and then
rm -rf
the existing installation:ProxmoxVE/ct/wallos.sh
Line 44 in e1daaa6
or move the app to a backup location:
ProxmoxVE/ct/part-db.sh
Line 43 in e1daaa6
Caveats with AdentureLog
AdventureLog has user-generated data in
/opt/adventurelog
which needs to be migrated. I only found themedia
folder in the backend but there could be more. So these additional files have to be handled correctly.βοΈ What settings are you using?
π₯οΈ Which Linux distribution are you using?
Debian 12
π Steps to reproduce the issue.
update
β Paste the full error output (if available).
No error, just a non-updated app.
πΌοΈ Additional context (optional).
I technically used an advanced installation for a different number and I have changed the IP by hand as per the guide. This does not show in the fancy Proxmox information unfortunately.
But everything else is default.
The text was updated successfully, but these errors were encountered: