How to Manually Remove Security Server Installation?

Security Server installation can be removed manually by removing X-Road packages and configuration directories.

Step-by-step guide

Security Server installation can be removed manually by executing the shell script below.

Ubuntu 18/20

remove.sh
#!/bin/sh set -x sudo apt-get purge xroad-base -y sudo apt-get autoremove -y sudo rm -rf /etc/xroad sudo rm -rf /usr/share/xroad sudo rm -rf /var/lib/xroad sudo rm -rf /var/log/xroad sudo rm -rf /var/tmp/xroad sudo rm -rf /etc/xroad.properties sudo apt-get purge nginx -y sudo -u postgres dropdb messagelog sudo -u postgres dropdb serverconf sudo -u postgres dropdb op-monitor sudo -u postgres psql -c "drop user serverconf" sudo -u postgres psql -c "drop user serverconf_admin" sudo -u postgres psql -c "drop user messagelog" sudo -u postgres psql -c "drop user messagelog_admin" sudo -u postgres psql -c "drop user opmonitor" sudo -u postgres psql -c "drop user opmonitor_admin" sudo apt-get purge postgresql -y sudo rm -rf /var/lib/postgresql

RHEL7/8

remove.sh
#!/bin/sh set -x sudo yum remove xroad-base -y sudo rm -rf /etc/xroad sudo rm -rf /usr/share/xroad sudo rm -rf /var/lib/xroad sudo rm -rf /var/log/xroad sudo rm -rf /var/tmp/xroad sudo rm -rf /etc/xroad.properties sudo yum remove nginx -y sudo -u postgres dropdb messagelog sudo -u postgres dropdb serverconf sudo -u postgres dropdb op-monitor sudo -u postgres psql -c "drop user serverconf" sudo -u postgres psql -c "drop user serverconf_admin" sudo -u postgres psql -c "drop user messagelog" sudo -u postgres psql -c "drop user messagelog_admin" sudo -u postgres psql -c "drop user opmonitor" sudo -u postgres psql -c "drop user opmonitor_admin" sudo yum remove postgresql -y sudo rm -rf /var/lib/pgsql

Related articles

Â