mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-03 22:51:28 +08:00
Turns out this was invalid syntax
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
@@ -9,14 +9,13 @@
|
||||
## Check that pkl is newer than old pkl
|
||||
if [ /srv/mirrorlist/data/mirrorlist1/mirrorlist_cache.pkl -nt /srv/mirrorlist/data/mirrorlist2/mirrorlist_cache.pkl ]; then
|
||||
# new pkl
|
||||
continue
|
||||
else
|
||||
# No new pkl
|
||||
exit 0
|
||||
fi
|
||||
## check mirrorlist1 running
|
||||
if [ `systemctl show mirrorlist1 -p ActiveState` == 'ActiveState=active' ]; then
|
||||
# mirrorlist1 is running ok
|
||||
else
|
||||
if [ `systemctl show mirrorlist1 -p ActiveState` != 'ActiveState=active' ]; then
|
||||
# mirrorlist1 not running, there is a problem
|
||||
echo "Error: mirrorlist1 is not running as expected"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user