Merge lp:~mthaddon/mojo/ntp-focal into lp:mojo/mojo-specs

Proposed by Tom Haddon
Status: Merged
Approved by: Gareth Woolridge
Approved revision: 155
Merged at revision: 153
Proposed branch: lp:~mthaddon/mojo/ntp-focal
Merge into: lp:mojo/mojo-specs
Diff against target: 54 lines (+25/-17)
1 file modified
charm-testing/ntp/post-deploy (+25/-17)
To merge this branch: bzr merge lp:~mthaddon/mojo/ntp-focal
Reviewer Review Type Date Requested Status
Mojo Maintainers Pending
Review via email: mp+379512@code.launchpad.net

Commit message

charm-testing/ntp: if we're on focal, only check chrony

Description of the change

charm-testing/ntp: if we're on focal, only check chrony.

Also some re-indenting for clarity.

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Merge proposal is approved, but source revision has changed, setting status to needs review.

Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 153

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'charm-testing/ntp/post-deploy'
--- charm-testing/ntp/post-deploy 2018-09-03 09:35:45 +0000
+++ charm-testing/ntp/post-deploy 2020-02-19 23:01:18 +0000
@@ -14,25 +14,33 @@
14}14}
1515
16case $MOJO_SERIES in16case $MOJO_SERIES in
17 focal)
18 # After bionic: only chrony
19 chronyd_check
20 ;;
17 trusty|xenial)21 trusty|xenial)
18 # Before bionic: only ntpd22 # Before bionic: only ntpd
19 ntpd_check23 ntpd_check
20 ;;24 ;;
25 bionic)
26 # bionic: pre-upgrade == ntpd, post-upgrade == chronyd
27 case $PHASE in
28 upgrade|redeploy)
29 chronyd_check
30 ;;
31 initial)
32 ntpd_check
33 ;;
34 *)
35 echo "ERROR: unknown phase"
36 exit 1
37 ;;
38 esac
39 ;;
21 *)40 *)
22 # bionic and later: pre-upgrade == ntpd, post-upgrade == chronyd41 echo "ERROR: unknown series"
23 case $PHASE in42 exit 1
24 upgrade|redeploy)43 ;;
25 chronyd_check
26 ;;
27 initial)
28 ntpd_check
29 ;;
30 *)
31 echo "ERROR: unknown phase"
32 exit 1
33 ;;
34 esac
35 ;;
36esac44esac
3745
38echo "######################### Post-deploy done #########################"46echo "######################### Post-deploy done #########################"

Subscribers

People subscribed via source and target branches

to all changes: