Bundling odbc drivers

What’s the right way to trigger this script at the build? During ‘override-{build | pull | stage}’ the env var $SNAP_USER_DATA seems to point somewhere else (like /root/snap/snapcraft/1871/) as during the actual snap run (like /home/me/snap/my-app/x4). Means the ini file is not located where the snap run expects it.