freebsd-ports/www/redaxo/files/pkg-deinstall.in
William Grzybowski 6752da9435 www/redaxo: update to 4.6.1
PR:		192510
Submitted by:	maintainer
2014-08-09 12:46:25 +00:00

40 lines
1.1 KiB
Bash

#!/bin/sh
# $FreeBSD$
if [ "$2" == "DEINSTALL" ]; then
if [ -d %%WWWDIR%% ]; then
if [ -z "${BATCH}" ]; then
echo ""
echo "========================================================================="
echo ""
echo "WARNING !"
echo ""
echo "Press ctrl-C NOW, if you intend to upgrade REDAXO!"
echo ""
echo "You have 10 seconds to abort the deletion."
echo ""
echo "For an upgrade, use REDAXOs built-in export functions for exporting all"
echo "your data to a safe place outside of the ports installation directory,"
echo "then delete the port, install the new version, and reimport your data."
echo ""
echo "========================================================================="
echo ""
sleep 10
fi
fi
fi
if [ "$2" == "POST-DEINSTALL" ]; then
if [ -d %%WWWDIR%% ]; then
wf=`find %%WWWDIR%% -not -type d | wc -l`
if [ $wf -ne 0 ]; then
echo ""
echo "-------------------------------------------------------------------------"
echo ""
echo "Run the following command, if you plan to permanently remove REDAXO:"
echo ""
echo " rm -rf %%WWWDIR%%"
echo ""
echo "-------------------------------------------------------------------------"
echo ""
fi
fi
fi