KWallet: Added info of Migration

This commit is contained in:
Daniel Pätzold
2026-03-29 13:11:00 +02:00
parent 79892294c5
commit 29e6f3fd60
+3 -2
View File
@@ -48,15 +48,16 @@ if [[ ! -z ${WALLET_PID} ]]; then
fi
fi
#Reset mount
umount ${WALLETPATH_CFG} >/dev/null 2>&1
#Setup encrypted path if not existing already
mkdir -p ${WALLETPATH}
chown $SUDO_USER:$SUDO_USER ${WALLETPATH} -R
chmod u=rwX,og-rwx ${WALLETPATH} -R
#Check for existing legacy wallets: should be empty. Otherwise: move them.
umount ${WALLETPATH_CFG} >/dev/null 2>&1
PATTERN=(${WALLETPATH_CFG}/*.kwl)
if [ -f ${PATTERN[0]} ]; then
echo "Moving to ${WALLETPATH}, Files: ${PATTERN}"
mv ${WALLETPATH_CFG}/*.* ${WALLETPATH}
if [[ $? -ne 0 ]]; then
echo "Legacy wallets could not be moved, please do that manually:"