Skip to content

fix(openvpn): ensure RW connection database is merged after package installation#1639

Merged
Tbaile merged 1 commit into
mainfrom
fix_ovpnrw_conn_history
May 13, 2026
Merged

fix(openvpn): ensure RW connection database is merged after package installation#1639
Tbaile merged 1 commit into
mainfrom
fix_ovpnrw_conn_history

Conversation

@m-dilorenzi
Copy link
Copy Markdown
Collaborator

This pull request makes a small change to the postinst script for the ns-openvpn package. It ensures that commands are only executed when not running in a package installation root environment, which is important for correct installation behavior.
It also add the execution of an additional command to merge the /var database records into the storage one, if present.

  • Post-install script improvements:
    • Updated the postinst script in packages/ns-openvpn/Makefile to run /usr/sbin/ns-openvpnrw-extend-crl and /usr/libexec/ns-openvpn/openvpn-merge-connections-db only when not in the package installation root, ensuring proper setup after installation.
    • Run the openvpn-merge-connections-db script after package installation so that, when the system is updated, records are merged into storage to avoid database read issues (after the update, connection history is read from storage if available).

Closes: #1404

@m-dilorenzi m-dilorenzi requested a review from Tbaile May 4, 2026 15:02
@m-dilorenzi m-dilorenzi self-assigned this May 4, 2026
@Tbaile Tbaile merged commit 8c0e665 into main May 13, 2026
2 checks passed
@Tbaile Tbaile deleted the fix_ovpnrw_conn_history branch May 13, 2026 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show full OpenVPN RW in the UI connection history from stored logs instead of RAM

2 participants