From 8b00ac90eb01b0eaf1a963755e5464e8e4882bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferit=20Yi=C4=9Fit=20BALABAN?= Date: Fri, 10 Nov 2023 21:04:28 +0300 Subject: [PATCH] Remove unison sync and add resync_vault.py to poweroff and reboot scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ferit Yiğit BALABAN --- poweroff.sh | 3 ++- reboot.sh | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/poweroff.sh b/poweroff.sh index f872759..6a64b8d 100755 --- a/poweroff.sh +++ b/poweroff.sh @@ -1,6 +1,7 @@ #!/bin/bash dt=$(date -Iseconds) -unison=$($HOME/scripts/unison_sync.sh) +# unison=$($HOME/scripts/unison_sync.sh) rm "$HOME/.cache/cliphist/db" +python "$HOME/scripts/resync_vault.py" echo "[$dt] INFO: navi, powering off" >> navi.log poweroff diff --git a/reboot.sh b/reboot.sh index fd0d1cf..75ef602 100644 --- a/reboot.sh +++ b/reboot.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash dt=$(date +'%d/%m/%y-%H.%M.%S') +rm "$HOME/.cache/cliphist/db" +python "$HOME/scripts/resync_vault.py" echo "[$dt] navi restarting..." >> $HOME/navi.log $HOME/scripts/modeset.py --shutdown reboot