6752da9435
PR: 192510 Submitted by: maintainer
40 lines
1.1 KiB
Bash
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
|