From ea4d4d8f70b1f6fb67f4a61c8be304047eac8f7f Mon Sep 17 00:00:00 2001 From: TudbuT Date: Mon, 4 Nov 2024 16:35:36 +0100 Subject: [PATCH] startsync: move to broken --- startsync.script.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/startsync.script.nix b/startsync.script.nix index 7354a29..ea8014b 100644 --- a/startsync.script.nix +++ b/startsync.script.nix @@ -6,8 +6,10 @@ pkgs.writeShellScriptBin "startsync" '' killall sshfs sftp sleep 0.5 killall -9 sshfs sftp - sudo umount -l sync + sudo umount -l ~/sync sleep 0.5 + mkdir ~/broken + mv ~/sync/* ~/broken/ if [ "$1" = "stop" ] ; then exit ; fi sshfs -p 23 root@tudbut.de:sync ~/sync while ! ls ~/sync/Passwords.kdbx ; do sleep 0.2 ; done