#!/bin/sh
set -e
case "$1" in
remove)
if [ -d /run/systemd/system ]; then
systemctl disable gitgud.service >/dev/null 2>&1 || true
systemctl daemon-reload >/dev/null 2>&1 || true
fi
;;
purge)
# Repositories, uploaded packages and the config are the operator's
# data, not ours to delete on purge — a forge's /var/lib is the
# thing you'd restore from backup, and an accidental `dpkg -P`
# should not be the same as losing it. Say where it is instead.
if [ -d /var/lib/gitgud ]; then
echo "gitgud: /var/lib/gitgud left in place (repositories, packages, storage)." >&2
echo "gitgud: remove it by hand if you really mean to." >&2
fi
if [ -d /etc/gitgud ]; then
echo "gitgud: /etc/gitgud left in place (configuration)." >&2
fi
;;
esac
exit 0
neiam
/gitgud
Git Gud
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
1
Log in to mark this repository.
826 B · text
History
b868907