mirror of
https://github.com/marcone/teslausb.git
synced 2025-04-18 14:59:07 +00:00
17 lines
517 B
Bash
Executable File
17 lines
517 B
Bash
Executable File
#!/bin/bash -eu
|
|
|
|
printf "Forcing archiveloop to sync by pretending to take archive host offline and back online.\n"
|
|
printf "Setting archive unreachable..\n"
|
|
if ! touch /tmp/archive_is_unreachable
|
|
then
|
|
printf "Something went wrong! Error %d\nAborting.\n" "$?" 1>&2
|
|
exit 1
|
|
fi
|
|
while [[ -f /tmp/archive_is_unreachable ]]
|
|
do
|
|
printf "Waiting for archiveloop to see canary file..\n"
|
|
sleep 5
|
|
done
|
|
printf "Done! archiveloop process should now start its sync process automagically as soon as it sees the archive.\n"
|
|
|