| 1 |
# In case of error (error in configuration file or model bug), the |
| 2 |
# configuration file is left as is. |
| 3 |
|
| 4 |
. /usr/share/debconf/confmodule |
| 5 |
|
| 6 |
db_get %PACKAGE%/auto-upgrade-config |
| 7 |
|
| 8 |
# testing perl is required to avoid problem in embedded environments |
| 9 |
if [ "$RET" = true ] && [ -x "/usr/bin/perl" ] && [ -x "/usr/bin/cme" ] |
| 10 |
then |
| 11 |
cme %COMMAND% %APPNAME% -create -backup dpkg-old -try-app-as-model %OPTION% || \ |
| 12 |
echo "WARNING: upgrade with cme failed: Run 'sudo cme migrate %APPNAME% %OPTION%'." |
| 13 |
fi |