Commit 792425a7 authored by Alain Takoudjou's avatar Alain Takoudjou

runner: exit import script if slapproxy database is emtpy on runner1 while trying to build SR

parent 8a30d6c1
......@@ -22,7 +22,7 @@ md5sum = 04e31ac503753f89510dd412b4680c56
[template-runner-import-script]
filename = template/runner-import.sh.jinja2
md5sum = e033845c9c24e4bb20caeedf19f9628a
md5sum = 95f870546037c32f5d81ef9895b2629b
[instance-runner-import]
filename = instance-runner-import.cfg.in
......
......@@ -132,6 +132,12 @@ SLAPOS='{{ directory["bin"] }}'/slapos
# XXX hardcoded
SQLITE3="$HOME/software_release/parts/sqlite3/bin/sqlite3"
DATABASE="$HOME/srv/runner/proxy.db"
# If slapproxy database is empty then no software release was opened
if [ ! -s "$DATABASE" ]; then
log_message "Slapproxy database empty, no Software Requested... Writing status file... End"
echo 0 > $RESTORE_EXIT_CODE_FILE
exit 0
fi
# Change slapproxy database to point instances to new software release
# XXX hardcoded
PARTITION=$(basename $HOME)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment