Skip to content

Upgrade & uninstall

Upgrade

cd ~/fr0ntier            # the directory you cloned
git pull
sudo ./install.sh --upgrade

The configuration, versions, metrics and logs are kept. The previous binary is saved as /var/lib/fr0ntier/backups/fr0ntier.previous. Before upgrading, download a backup from System → Backup & Restore.

Configurations written by older releases are upgraded automatically when they are loaded (the meta.schema field tells the version of the format).

Coming from the 0.1 beta (Vixia)

The project was renamed for 1.0 and every path changed (/etc/vixia → /etc/fr0ntier, vixia.service → fr0ntier.service…), so a beta installation is not upgraded in place:

  1. On the beta, export the running configuration: System → Backup & Restore → Export running config (JSON).
  2. Uninstall the beta (sudo ./uninstall.sh in the old vixia directory) and reboot.
  3. Install fr0ntier 1.0 (Installation).
  4. System → Backup & Restore → Load into candidate with the exported JSON, review the diff and commit. Administrators are not part of the configuration: create them again.

Roll back a bad upgrade

sudo install -m 0755 /var/lib/fr0ntier/backups/fr0ntier.previous /usr/local/bin/fr0ntier
sudo systemctl restart fr0ntier fr0ntier-dns

Uninstall

sudo ./uninstall.sh          # keep /etc/fr0ntier and /var/lib/fr0ntier
sudo ./uninstall.sh --purge  # remove everything
sudo systemctl reboot

The uninstaller removes units, firewall tables and rendered files, restores the files saved at install time (/etc/network/interfaces, resolver…) and re-enables the services that were enabled before (networking, NetworkManager, systemd-resolved…).