You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
448 B

#!/bin/sh
if [ -f /home/e-smith/db/ejabberd/ejabberd.backup ]
then
if [ ! -f /sbin/e-smith/ejabberdctl ]
then
echo "ejabberd is not installed - no tables restored" >&2
exit 0
else
status=$(/sbin/e-smith/config getprop ejabberd status)
if [ "$status" = "disabled" ]
then
echo "ejabberd is disabled - no tables restored" >&2
exit 0
fi
/sbin/e-smith/ejabberdctl restore /home/e-smith/db/ejabberd/ejabberd.backup
fi
fi