startsync: move to broken

This commit is contained in:
Daniella / Tove 2024-11-04 16:35:36 +01:00
parent 9c1f64b488
commit ea4d4d8f70
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -6,8 +6,10 @@ pkgs.writeShellScriptBin "startsync" ''
killall sshfs sftp killall sshfs sftp
sleep 0.5 sleep 0.5
killall -9 sshfs sftp killall -9 sshfs sftp
sudo umount -l sync sudo umount -l ~/sync
sleep 0.5 sleep 0.5
mkdir ~/broken
mv ~/sync/* ~/broken/
if [ "$1" = "stop" ] ; then exit ; fi if [ "$1" = "stop" ] ; then exit ; fi
sshfs -p 23 root@tudbut.de:sync ~/sync sshfs -p 23 root@tudbut.de:sync ~/sync
while ! ls ~/sync/Passwords.kdbx ; do sleep 0.2 ; done while ! ls ~/sync/Passwords.kdbx ; do sleep 0.2 ; done