ScoDoc/tools/debian/prerm
2024-08-24 15:00:15 +02:00

20 lines
457 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
# Pre-removal script for scodoc
# This script is called by dpkg before removing the package
cd /opt/scodoc || (echo "Error chdir to /opt/scodoc"; exit 1)
# On peut donc charger la config:
source /opt/scodoc/tools/config.sh || (echo "Error loading /opt/scodoc/tools/config.sh"; exit 1)
source /opt/scodoc/tools/utils.sh || (echo "Error loading /opt/scodoc/tools/utils.sh"; exit 1)
check_uid_root
remove_install_status