KWallet: Added info of Migration
This commit is contained in:
@@ -48,15 +48,16 @@ if [[ ! -z ${WALLET_PID} ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Reset mount
|
|
||||||
umount ${WALLETPATH_CFG} >/dev/null 2>&1
|
|
||||||
#Setup encrypted path if not existing already
|
#Setup encrypted path if not existing already
|
||||||
mkdir -p ${WALLETPATH}
|
mkdir -p ${WALLETPATH}
|
||||||
chown $SUDO_USER:$SUDO_USER ${WALLETPATH} -R
|
chown $SUDO_USER:$SUDO_USER ${WALLETPATH} -R
|
||||||
chmod u=rwX,og-rwx ${WALLETPATH} -R
|
chmod u=rwX,og-rwx ${WALLETPATH} -R
|
||||||
|
|
||||||
#Check for existing legacy wallets: should be empty. Otherwise: move them.
|
#Check for existing legacy wallets: should be empty. Otherwise: move them.
|
||||||
|
umount ${WALLETPATH_CFG} >/dev/null 2>&1
|
||||||
PATTERN=(${WALLETPATH_CFG}/*.kwl)
|
PATTERN=(${WALLETPATH_CFG}/*.kwl)
|
||||||
if [ -f ${PATTERN[0]} ]; then
|
if [ -f ${PATTERN[0]} ]; then
|
||||||
|
echo "Moving to ${WALLETPATH}, Files: ${PATTERN}"
|
||||||
mv ${WALLETPATH_CFG}/*.* ${WALLETPATH}
|
mv ${WALLETPATH_CFG}/*.* ${WALLETPATH}
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
echo "Legacy wallets could not be moved, please do that manually:"
|
echo "Legacy wallets could not be moved, please do that manually:"
|
||||||
|
|||||||
Reference in New Issue
Block a user