diff --git a/client_software/0010_kwallet/install.sh b/client_software/0010_kwallet/install.sh index 1ec280a..7b42cb3 100755 --- a/client_software/0010_kwallet/install.sh +++ b/client_software/0010_kwallet/install.sh @@ -40,9 +40,23 @@ WALLET_PID=$( pgrep -u $SUDO_USER kwalletd6 ) if [[ ! -z ${WALLET_PID} ]]; then MANAGER_PID=$( pgrep -u $SUDO_USER kwalletmanager5 ) if [[ ! -z ${MANAGER_PID} ]]; then + echo "Stopping kwalletmanager5 with PID ${MANAGER_PID}" kill ${MANAGER_PID} + if [[ $? -ne 0 ]]; then + echo "Service could not be stopped, please check why." + exit 1 + fi fi - kill ${WALLET_PID} && sleep 0.5 && echo "Service kwalletd6 was stopped." + SECTRETS_PID=$( pgrep -u $SUDO_USER ksecretd ) + if [[ ! -z ${SECTRETS_PID} ]]; then + echo "Stopping ksecretd with PID ${SECTRETS_PID}" + kill ${SECTRETS_PID} + if [[ $? -ne 0 ]]; then + echo "Service could not be stopped, please check why." + exit 1 + fi + fi + kill ${WALLET_PID} && sleep 0.5 && echo "Service kwalletd6 (${WALLET_PID}) was stopped too." if [[ $? -ne 0 ]]; then echo "Kwallet Service could not be stopped, please check why." exit 1 @@ -79,7 +93,7 @@ if grep -q ""${WALLETPATH_CFG}"" "/etc/mtab"; then fi fi -#With every new start of KDE the Files will be recreated in ${WALLETPATH_CFG} containing no passwords but enrcypted with current user Password. +#With every new start of KDE the Files will be recreated in ${WALLETPATH_CFG} containing no passwords but enrcypted with current user password #We cannot use this wallet, so drop it rm -f ${WALLETPATH_CFG}/*.*