forked from obel1x/fedora-OEMDRV
Wallet: New install wrote new rc at the second logon
This commit is contained in:
@@ -103,7 +103,14 @@ rm -f ${WALLETPATH_CFG}/*.*
|
||||
|
||||
#Restore initial configuration with defaults and make a backup of the old one
|
||||
#Only do this once!
|
||||
if [[ ! -f "$SUDO_HOME/.config/kwalletrc" ]]; then
|
||||
#New install, never create rc file before -> use predefined
|
||||
cp -f $(dirname "0")/kwalletrc $SUDO_HOME/.config/
|
||||
chown $SUDO_USER:$SUDO_USER $SUDO_HOME/.config/kwalletrc
|
||||
chmod u=rw,og-rwx $SUDO_HOME/.config/kwalletrc
|
||||
fi
|
||||
if [[ ! -f "$SUDO_HOME/.config/kwalletrc.bak" ]]; then
|
||||
# If something else was installed before and no bak is existent, make a bakup and reinstall (could also be the predefined version)
|
||||
cp $SUDO_HOME/.config/kwalletrc $SUDO_HOME/.config/kwalletrc.bak
|
||||
cp -f $(dirname "0")/kwalletrc $SUDO_HOME/.config/
|
||||
chown $SUDO_USER:$SUDO_USER $SUDO_HOME/.config/kwalletrc
|
||||
|
||||
Reference in New Issue
Block a user