Commit 6f1d1f8c authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

other fixes

parent 4acbdbfc
...@@ -42,7 +42,9 @@ irods_push(){ ...@@ -42,7 +42,9 @@ irods_push(){
# Alert to zabbix # Alert to zabbix
zabbix "${KEY}:Error 011" zabbix "${KEY}:Error 011"
else else
echo "[$KEY] staging.tar data sent, let's commit everything on irods server"
irods_commit $KEY irods_commit $KEY
fi fi
} }
...@@ -98,7 +100,7 @@ irods_commit(){ ...@@ -98,7 +100,7 @@ irods_commit(){
return 1 return 1
fi fi
) )
echp "[$KEY] Validate staging.tar by moving it to staging.tar" echo "[$KEY] Validate staging.tar by moving it to latest.tar"
imv $KEY/staging.tar $KEY/latest.tar imv $KEY/staging.tar $KEY/latest.tar
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
echo "[$KEY] Error 005 moving statging.tar to latest.tar. Corrective action has to be taken manualy" echo "[$KEY] Error 005 moving statging.tar to latest.tar. Corrective action has to be taken manualy"
......
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