minor bug fixes

This commit is contained in:
louwrentius 2011-08-22 22:28:22 +00:00
parent c344794953
commit 136c1c13ca
1 changed files with 14 additions and 0 deletions

14
ppss
View File

@ -451,11 +451,24 @@ cleanup () {
log DEBUG "$FUNCNAME - Cleaning up all temp files and processes. $1" log DEBUG "$FUNCNAME - Cleaning up all temp files and processes. $1"
for x in $MODES
do
if [ "$x" == "$MODE" ]
then
rm -rf "$PPSS_DIR"
fi
done
if [ -e "$FIFO" ] if [ -e "$FIFO" ]
then then
rm "$FIFO" rm "$FIFO"
fi fi
if [ -e "$FIFO_LISTENER" ]
then
rm "$FIFO_LISTENER"
fi
if [ -e "$SSH_SOCKET" ] if [ -e "$SSH_SOCKET" ]
then then
rm -rf "$SSH_SOCKET" rm -rf "$SSH_SOCKET"
@ -2856,6 +2869,7 @@ main () {
display_header display_header
test_server test_server
show_status show_status
cleanup
;; ;;
erase ) erase )
LOGFILE=/dev/null LOGFILE=/dev/null