#!/bin/sh

new=$1
old=$2

# if current is not older than 0.0.11 we exit.
if ! [ "$(apk version -t $old 0.0.11)" = "<" ]; then
	exit 0
fi

sqlite3 /var/lib/freeswitch/db/voicemail_default.db "UPDATE voicemail_params SET descr='Passwords must be all numbers and at least three digits' WHERE name='vm-password'"

exit 0

