Kwallet: Kill ksecretsd too
This commit is contained in:
@@ -40,9 +40,23 @@ WALLET_PID=$( pgrep -u $SUDO_USER kwalletd6 )
|
|||||||
if [[ ! -z ${WALLET_PID} ]]; then
|
if [[ ! -z ${WALLET_PID} ]]; then
|
||||||
MANAGER_PID=$( pgrep -u $SUDO_USER kwalletmanager5 )
|
MANAGER_PID=$( pgrep -u $SUDO_USER kwalletmanager5 )
|
||||||
if [[ ! -z ${MANAGER_PID} ]]; then
|
if [[ ! -z ${MANAGER_PID} ]]; then
|
||||||
|
echo "Stopping kwalletmanager5 with PID ${MANAGER_PID}"
|
||||||
kill ${MANAGER_PID}
|
kill ${MANAGER_PID}
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
echo "Service could not be stopped, please check why."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
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
|
if [[ $? -ne 0 ]]; then
|
||||||
echo "Kwallet Service could not be stopped, please check why."
|
echo "Kwallet Service could not be stopped, please check why."
|
||||||
exit 1
|
exit 1
|
||||||
@@ -79,7 +93,7 @@ if grep -q ""${WALLETPATH_CFG}"" "/etc/mtab"; then
|
|||||||
fi
|
fi
|
||||||
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
|
#We cannot use this wallet, so drop it
|
||||||
rm -f ${WALLETPATH_CFG}/*.*
|
rm -f ${WALLETPATH_CFG}/*.*
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user