agate

Simple gemini server for static files
git clone https://github.com/mbrubeck/agate.git
Log | Files | Refs | README

uninstall.sh (885B)


      1 #!/bin/bash
      2 # This file is part of the Agate software and licensed under either the
      3 # MIT license or Apache license at your option.
      4 #
      5 # Please keep in mind that there is not warranty whatsoever provided for this
      6 # software as specified in the disclaimer in the MIT license or section 7 of
      7 # the Apache license respectively.
      8 
      9 echo "stopping and disabling service..."
     10 systemctl stop gemini
     11 systemctl disable gemini
     12 
     13 echo "removing config files..."
     14 rm -f /etc/systemd/system/gemini.service /etc/rsyslog.d/gemini.conf /etc/logrotate.d/geminilogs
     15 
     16 echo "deleting certificates..."
     17 rm -rf /srv/gemini/.certificates
     18 # do not delete content files, user might want to use them still or can delete them manually
     19 echo "NOTE: content files at /srv/gemini/content not deleted"
     20 # cannot uninstall executable since we did not install it
     21 echo "NOTE: agate executable at $(which agate) not uninstalled"