Kwallet: Create Folder for Wallet if not there

This commit is contained in:
Daniel Pätzold
2026-03-29 12:46:19 +02:00
parent 670f21526c
commit 3583d50cb9
+6 -1
View File
@@ -48,8 +48,13 @@ if [[ ! -z ${WALLET_PID} ]]; then
fi fi
fi fi
#Check for existing legacy wallets: should be empty. Otherwise: move them. #Reset mount
umount ${WALLETPATH_CFG} >/dev/null 2>&1 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.
PATTERN=(${WALLETPATH_CFG}/*.kwl) PATTERN=(${WALLETPATH_CFG}/*.kwl)
if [ -f ${PATTERN[0]} ]; then if [ -f ${PATTERN[0]} ]; then
mv ${WALLETPATH_CFG}/*.* ${WALLETPATH} mv ${WALLETPATH_CFG}/*.* ${WALLETPATH}