diff --git a/client_software/0010_kwallet/install.sh b/client_software/0010_kwallet/install.sh index 40da9ad..888d361 100755 --- a/client_software/0010_kwallet/install.sh +++ b/client_software/0010_kwallet/install.sh @@ -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:"