/usr/bin/dokuwiki-delsite is in dokuwiki 0.0.20131208-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #! /bin/sh
set -e
if [ $# -ne 1 ]
then
echo "Usage: $0 SITE_NAME"
exit 1
fi
site_name="$1"
site_dir="/var/lib/dokuwiki/farm/$site_name"
conf_dir="/etc/dokuwiki/farm/$site_name"
echo "removing animal $site_name"
rm -rf $site_dir
rm -rf $conf_dir
echo "finished!"
echo "bye!"
exit 0
|