Move SIP upgrade into app script

This commit is contained in:
Bob Mottram 2016-07-08 14:32:35 +01:00
parent 46d0f0a541
commit 9c3d627bf2
2 changed files with 4 additions and 6 deletions

View File

@ -38,7 +38,10 @@ VOIP_TURN_TLS_PORT=5349
VOIP_TURN_NONCE= VOIP_TURN_NONCE=
function upgrade_sip { function upgrade_sip {
echo -n '' # remove the original sipwitch daemon if it exists
if [ -f /etc/init.d/sipwitch ]; then
rm -f /etc/init.d/sipwitch
fi
} }
function backup_local_sip { function backup_local_sip {

View File

@ -109,11 +109,6 @@ if [ -d $PROJECT_DIR ]; then
fi fi
fi fi
# remove the original sipwitch daemon if it exists
if [ -f /etc/init.d/sipwitch ]; then
rm -f /etc/init.d/sipwitch
fi
if [ -f /usr/bin/reset-tripwire ]; then if [ -f /usr/bin/reset-tripwire ]; then
echo ' echo '