aboutsummaryrefslogtreecommitdiffstats
path: root/main/acf-freeswitch-vmail/acf-freeswitch-vmail.post-upgrade
blob: 3b0ff119c8ccedf50a8e9d6d2d374e7696441d23 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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