Don't kill tailtextlog when changing recipients
The lsof / grep call is broken and causes the script to crash when adding or removing a recipient. Lsof also doesn't have a stable output format, and the format is different between the busybox and gnu versions, so we shouldn't be trying to parse the output of it. Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
This commit is contained in:

committed by
Peter John Hartman

parent
f5dd68bc75
commit
b2c3d97760
@@ -121,7 +121,6 @@ sendtextmenu() {
|
||||
mv "$SXMO_LOGDIR/$OLDNUMBER/draft.attachments.txt" \
|
||||
"$SXMO_LOGDIR/$NUMBER/draft.attachments.txt"
|
||||
fi
|
||||
kill "$(lsof | grep "/$OLDNUMBER/sms.txt" | cut -f1)"
|
||||
[ -e "$SXMO_LOGDIR/$NUMBER/sms.txt" ] || touch "$SXMO_LOGDIR/$NUMBER/sms.txt"
|
||||
sxmo_hook_tailtextlog.sh "$NUMBER" &
|
||||
fi
|
||||
@@ -155,7 +154,6 @@ sendtextmenu() {
|
||||
mv "$SXMO_LOGDIR/$OLDNUMBER/draft.attachments.txt" \
|
||||
"$SXMO_LOGDIR/$NUMBER/draft.attachments.txt"
|
||||
fi
|
||||
kill "$(lsof | grep "/$OLDNUMBER/sms.txt" | cut -f1)"
|
||||
[ -e "$SXMO_LOGDIR/$NUMBER/sms.txt" ] || touch "$SXMO_LOGDIR/$NUMBER/sms.txt"
|
||||
sxmo_hook_tailtextlog.sh "$NUMBER" &
|
||||
fi
|
||||
|
Reference in New Issue
Block a user