kde5-migrate-user-conf: if akonadi >= 5 migrate database backend from QSQLITE3 to QMYSQL
This commit is contained in:
parent
4b7771218d
commit
d02069a13c
@ -41,3 +41,10 @@ for p in ~/.kde4/share/apps/*; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
touch ~/.kde4/share/.kde5_conf_migrated
|
touch ~/.kde4/share/.kde5_conf_migrated
|
||||||
|
# Switch Akonadi db backend from QSQLITE3 to QMYSQL
|
||||||
|
if [ "`akonadictl --version | grep \"Akonadi 5\"`" -a -e ~/.config/akonadi/akonadiserverrc ]; then
|
||||||
|
grep -q "^Driver=QSQLITE" ~/.config/akonadi/akonadiserverrc && {
|
||||||
|
sed -i "s|^Driver=QSQLITE.*|Driver=QMYSQL|" ~/.config/akonadi/akonadiserverrc
|
||||||
|
sed -i "s|^ServerPath=/usr/sbin/mysqld|ServerPath=/usr/bin/mysqld|" ~/.config/akonadi/akonadiserverrc
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user