diff options
Diffstat (limited to 'main/freeradius/freeradius.post-upgrade')
-rw-r--r-- | main/freeradius/freeradius.post-upgrade | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/main/freeradius/freeradius.post-upgrade b/main/freeradius/freeradius.post-upgrade index d047ad7a43..9636b7752a 100644 --- a/main/freeradius/freeradius.post-upgrade +++ b/main/freeradius/freeradius.post-upgrade @@ -14,4 +14,14 @@ if [ "$(apk version -t "$ver_old" "3.0.20-r4")" = "<" ]; then setup-freeradius enable-default-mods >/dev/null 2>&1 fi +if [ "$(apk version -t "$ver_old" "3.0.20-r8")" = "<" ]; then + cuidb_file_old='/var/log/radius/radacct/cui.sqlite' + cuidb_file_new='/var/lib/radiusd/cui.sqlite' + + if [ -f "$cuidb_file_old" ] && ! [ -e "$cuidb_file_new" ]; then + echo "* Moving $cuidb_file_old to $cuidb_file_new" >&2 + mv "$cuidb_file_old" "$cuidb_file_new" + fi +fi + exit 0 |