/usr/sbin/spip_rm_site is in spip 3.0.17-2+deb8u4.
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 24 | #!/bin/sh
set -e
SITE=$1
# Script to add a site to spip
if [ "$SITE" = "" ]; then
echo "Usage: spip-rm-site site"
exit 1
fi
if [ "`whoami`" != "root" ]; then
echo "This script must be run by root!"
exit 1
fi
echo "Deleting site $SITE...."
rm -rf /var/lib/spip/sites/$SITE
rm -rf /etc/spip/sites/$SITE.php
echo "Directories and files removed"
exit 0
|