MV ERROR_DBLINK
This commit is contained in:
parent
45135bf695
commit
a3614030c8
@ -11,6 +11,9 @@ LIBVER=1.1
|
|||||||
readonly TTSYNC_DEL=3 #local file deleted
|
readonly TTSYNC_DEL=3 #local file deleted
|
||||||
readonly globalconf="/etc/tt/global"
|
readonly globalconf="/etc/tt/global"
|
||||||
[ -z "$DEBUG" ] && readonly DEBUG=$FALSE
|
[ -z "$DEBUG" ] && readonly DEBUG=$FALSE
|
||||||
|
|
||||||
|
#ERROR Returns
|
||||||
|
readonly ERROR_DBLINK=20
|
||||||
}
|
}
|
||||||
|
|
||||||
# file_size <path> -> (du -b)/1024 [Kb]
|
# file_size <path> -> (du -b)/1024 [Kb]
|
||||||
|
@ -72,7 +72,7 @@ moviedir=""$(echo $moviedir | sed 's|/$||g')""
|
|||||||
#db checks
|
#db checks
|
||||||
[ "$(db_check)" == $FALSE ] && {
|
[ "$(db_check)" == $FALSE ] && {
|
||||||
echo "DB ERROR!!" >&2
|
echo "DB ERROR!!" >&2
|
||||||
exit 1
|
exit $ERROR_DBLINK
|
||||||
}
|
}
|
||||||
|
|
||||||
## functions
|
## functions
|
||||||
|
@ -58,7 +58,7 @@ function main() {
|
|||||||
#db checks
|
#db checks
|
||||||
[ "$(db_check)" == $FALSE ] && {
|
[ "$(db_check)" == $FALSE ] && {
|
||||||
echo "DB ERROR!!" >&2
|
echo "DB ERROR!!" >&2
|
||||||
exit 1
|
exit $ERROR_DBLINK
|
||||||
}
|
}
|
||||||
|
|
||||||
#clean DB from old stuff
|
#clean DB from old stuff
|
||||||
|
Loading…
Reference in New Issue
Block a user