Turns out this was invalid syntax
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
b5f498e51a
commit
ad58a2b0fa
1 changed files with 2 additions and 3 deletions
|
@ -9,14 +9,13 @@
|
||||||
## Check that pkl is newer than old pkl
|
## 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
|
if [ /srv/mirrorlist/data/mirrorlist1/mirrorlist_cache.pkl -nt /srv/mirrorlist/data/mirrorlist2/mirrorlist_cache.pkl ]; then
|
||||||
# new pkl
|
# new pkl
|
||||||
|
continue
|
||||||
else
|
else
|
||||||
# No new pkl
|
# No new pkl
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
## check mirrorlist1 running
|
## check mirrorlist1 running
|
||||||
if [ `systemctl show mirrorlist1 -p ActiveState` == 'ActiveState=active' ]; then
|
if [ `systemctl show mirrorlist1 -p ActiveState` != 'ActiveState=active' ]; then
|
||||||
# mirrorlist1 is running ok
|
|
||||||
else
|
|
||||||
# mirrorlist1 not running, there is a problem
|
# mirrorlist1 not running, there is a problem
|
||||||
echo "Error: mirrorlist1 is not running as expected"
|
echo "Error: mirrorlist1 is not running as expected"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue