2022-06-11 17:49:37 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -o pipefail
|
2022-06-12 09:08:48 +00:00
|
|
|
{{ import_gpg_cmd }} | tee -a {{ sync_log }}
|
|
|
|
{{ dnf_plugin_cmd }} | tee -a {{ sync_log }}
|
|
|
|
{{ sync_cmd }} | tee -a {{ sync_log }}
|
|
|
|
{{ check_cmd }} | tee -a {{ sync_log }}
|
|
|
|
|
|
|
|
ret_val=$?
|
|
|
|
if [ "$ret_val" -eq 1 ]; then
|
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
exit 1
|
|
|
|
fi
|