Detect if password database is not present

master
Hektor Misplon 2023-06-12 00:26:40 +02:00
parent 1df3dd3042
commit 57b6a468b1
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
# `systemctl --user enable save-passwddb.service` # `systemctl --user enable save-passwddb.service`
# `systemctl --user enable save-passwddb.timer` # `systemctl --user enable save-passwddb.timer`
if [ -f "$HOME/doc/passswd.kdbx" ]; then if [ -f "$HOME/doc/passwd.kdbx" ]; then
rclone copy "$HOME/doc/passwd.kdbx" google-drive: rclone copy "$HOME/doc/passwd.kdbx" google-drive:
else else
echo "Password database not found, use 'rclone copy google-drive:passwd.kdbx $HOME/doc/passwd.kdbx' to restore" echo "Password database not found, use 'rclone copy google-drive:passwd.kdbx $HOME/doc/passwd.kdbx' to restore"