From 5425a44afb7fc15e1034cff1622d46e3f035876c Mon Sep 17 00:00:00 2001 From: Patrick Van der Veken Date: Thu, 24 Oct 2019 20:37:29 +0200 Subject: [PATCH] Strip post-install for Debian --- build/linux/DEBIAN/hc-linux/postrm | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/build/linux/DEBIAN/hc-linux/postrm b/build/linux/DEBIAN/hc-linux/postrm index 98e28d5..f434b99 100755 --- a/build/linux/DEBIAN/hc-linux/postrm +++ b/build/linux/DEBIAN/hc-linux/postrm @@ -8,26 +8,6 @@ HC_ETC_DIR="/etc/opt/hc" HC_VAR_DIR="/var/opt/hc" # ------------------------- CONFIGURATION ends here --------------------------- echo "INFO: starting post-uninstall script ..." -if [[ -d ${HC_DIR} ]] -then - rm -rf ${HC_DIR} 2>/dev/null - (( $? == 0 )) || echo "WARN: failed to remove ${HC_DIR}" -fi -if [[ -d ${HC_ETC_DIR} ]] -then - rm -rf ${HC_ETC_DIR}/*.dist >/dev/null - (( $? == 0 )) || echo "WARN: could not remove .dist files in directory ${HC_ETC_DIR}" -fi -if [[ -d ${HC_ETC_DIR}/core ]] -then - rm -rf ${HC_ETC_DIR}/core/*.dist >/dev/null - (( $? == 0 )) || echo "WARN: could not remove .dist files in directory ${HC_ETC_DIR}/core" -fi -if [[ -d ${HC_ETC_DIR}/core/providers ]] -then - rm -rf ${HC_ETC_DIR}/core/providers/*.dist >/dev/null - (( $? == 0 )) || echo "WARN: could not remove .dist files in directory ${HC_ETC_DIR}/core/providers" -fi if [[ -d ${HC_VAR_DIR} ]] then rm -rf ${HC_VAR_DIR}/state/temporary 2>/dev/null