Merge lp:~jpds/ubumirror/ubucloudimage-dir-check-fix into lp:ubumirror

Proposed by Jonathan Davies
Status: Merged
Merged at revision: 83
Proposed branch: lp:~jpds/ubumirror/ubucloudimage-dir-check-fix
Merge into: lp:ubumirror
Diff against target: 21 lines (+2/-2)
1 file modified
ubucloudimage (+2/-2)
To merge this branch: bzr merge lp:~jpds/ubumirror/ubucloudimage-dir-check-fix
Reviewer Review Type Date Requested Status
Chris Glass Approve
Review via email: mp+231644@code.launchpad.net

Description of the change

Fixed variable that ubucloudimage looks for.

To post a comment you must log in.
Revision history for this message
Chris Glass (tribaal) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubucloudimage'
2--- ubucloudimage 2014-08-15 07:45:45 +0000
3+++ ubucloudimage 2014-08-20 23:10:33 +0000
4@@ -33,7 +33,7 @@
5 # Log all activity to file.
6 exec >> $LOGFILE 2>&1
7
8-if [ -z "$UBUARC_DIR" ]; then
9+if [ -z "$UBUCLOUD_DIR" ]; then
10 echo -n "No Ubuntu cloud-image target directory (UBUCLOUD_DIR) set in "
11 echo "/etc/ubumirror.conf."
12 exit 2
13@@ -75,7 +75,7 @@
14 $UBUCLOUD_MIRROR $UBUCLOUD_DIR
15
16 if [ $? -ne 0 ]; then
17- ( echo "CLoud-image sync failed. Please check logs."; \
18+ ( echo "Cloud-image sync failed. Please check logs."; \
19 egrep '^write failed|@ERROR' $LOGFILE ) | mail -s "Cloud-image sync failed" $EMAIL
20 echo "$(date -R): Cloud-image sync failed."
21 exit 1

Subscribers

People subscribed via source and target branches

to status/vote changes: