backup database earlier
This commit is contained in:
@ -37,13 +37,13 @@ download() {
|
||||
echo -e "${IGREEN}has internet${NO_COLOR}"
|
||||
done
|
||||
|
||||
[[ $(hostname) != \s\a\t\a\n ]] && cp ./gallery-dl/archive-$1.sqlite3 /data/backup
|
||||
|
||||
if [ -s to_download_$1.txt ]; then
|
||||
exit 1
|
||||
# exit with some kind of error
|
||||
# service should then send error and fitting message to ntfy
|
||||
fi
|
||||
|
||||
[[ $(hostname) != \s\a\t\a\n ]] && cp ./gallery-dl/archive-$1.sqlite3 /data/backup
|
||||
}
|
||||
|
||||
[[ $(hostname) == \s\a\t\a\n ]] && setup_test
|
||||
|
Reference in New Issue
Block a user