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

@ -450,12 +450,25 @@ check_for_interrupt () {
cleanup () {
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" ]
then
rm "$FIFO"
fi
if [ -e "$FIFO_LISTENER" ]
then
rm "$FIFO_LISTENER"
fi
if [ -e "$SSH_SOCKET" ]
then
rm -rf "$SSH_SOCKET"
@ -2856,6 +2869,7 @@ main () {
display_header
test_server
show_status
cleanup
;;
erase )
LOGFILE=/dev/null