Added logdir check to debug mode

This commit is contained in:
Daniel Gibbs 2013-08-15 00:09:35 +01:00
parent a3cdeea05d
commit 491a6c78ea

View File

@ -16,6 +16,7 @@ email="email@example.com"
servername="Mumble"
servicename="mumble-server"
# Directorys
# Directorys
rootdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0"
@ -208,6 +209,9 @@ fn_debugserver(){
fn_rootcheck
fn_syscheck
cd ${filesdir}
if [ -f ${logdir} ];then
cp ${logfile} ${logfiledate}
fi
echo -e "[\e[0;32m OK \e[0;39m] Starting ${servicename}: ${servername} Debug mode!"
sleep 0.5
echo -e "Use for identifying server issues only!"
@ -263,4 +267,4 @@ case "$1" in
echo "Usage: $0 {start|stop|restart|monitor|debug|email-test}"
exit 1;;
esac
exit
exit