Stop the daemon, back up the database, install 0.7.19, then start the daemon again; your agents keep running through the restart. Run it with the same OpenRig home and database as the daemon you're upgrading.
Run the upgrade in the environment that owns your daemon, keeping the same OPENRIG_HOME (legacy RIGGED_HOME) if you set it. Stop the daemon, back up its database, install the patch, then restart it. Your agents keep running; do not use rig down for this upgrade. If the daemon was started with --db, or with OPENRIG_DB (legacy RIGGED_DB) set differently from this shell, replace the DB= line below with that actual database path. Pass the same --db "$DB" to every rig daemon start, including recovery; rig config get db.path reads this shell's configuration, not the running daemon's launch arguments or environment. A failure stops the following commands. Fix it before continuing. If stopping failed, use rig daemon status: when it says “Daemon stopped”, continue from DB=; when it says “Daemon PID is absent”, start the daemon with its original home/database settings before retrying the block.
rig daemon stop &&
DB="$(rig config get db.path)" &&
BACKUP="$DB.before-0.7.19-$(date -u +%Y%m%dT%H%M%SZ)" &&
{ [ ! -e "$BACKUP" ] || { echo "$BACKUP already exists; keep it and run again." >&2; false; }; } &&
cp "$DB" "$BACKUP" &&
{ [ ! -e "$DB-wal" ] || cp "$DB-wal" "$BACKUP-wal"; } &&
npm install -g @openrig/cli@0.7.19 &&
rig daemon start- Release
- OpenRig 0.7.19 release notes