ScoDoc-Lille/tools/debian/prerm

20 lines
457 B
Bash

#!/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