github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/.release/linux/postrm (about)

     1  #!/bin/bash
     2  
     3  if [ "$1" = "purge" ]; then
     4    userdel nomad
     5  fi
     6  
     7  if [ "$1" == "upgrade" ] && [ -d /run/systemd/system ]; then
     8    systemctl --system daemon-reload >/dev/null || true
     9    systemctl restart nomad >/dev/null || true
    10  fi
    11  
    12  exit 0