MV ERROR_DBLINK

This commit is contained in:
6543 2019-05-12 00:03:26 +02:00
parent 45135bf695
commit a3614030c8
3 changed files with 5 additions and 2 deletions

View File

@ -11,6 +11,9 @@ LIBVER=1.1
readonly TTSYNC_DEL=3 #local file deleted
readonly globalconf="/etc/tt/global"
[ -z "$DEBUG" ] && readonly DEBUG=$FALSE

#ERROR Returns
readonly ERROR_DBLINK=20
}

# file_size <path> -> (du -b)/1024 [Kb]

View File

@ -72,7 +72,7 @@ moviedir=""$(echo $moviedir | sed 's|/$||g')""
#db checks
[ "$(db_check)" == $FALSE ] && {
echo "DB ERROR!!" >&2
exit 1
exit $ERROR_DBLINK
}

## functions

View File

@ -58,7 +58,7 @@ function main() {
#db checks
[ "$(db_check)" == $FALSE ] && {
echo "DB ERROR!!" >&2
exit 1
exit $ERROR_DBLINK
}

#clean DB from old stuff