issue with conditional in postinst

Bug #1564187 reported by Logan Rosen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Fix Released
High
Unassigned

Bug Description

I received the following message when upgrading cloud-init in Ubuntu Xenial:
/var/lib/dpkg/info/cloud-init.postinst: 206: /var/lib/dpkg/info/cloud-init.postinst: -f: not found

I looked at the script, and there appear to be missing brackets around the test. Specifically, line 206 should probably read:
if [ ! -f /var/lib/cloud/instance/obj.pkl ]; then

Revision history for this message
Scott Moser (smoser) wrote :

Thanks for bug report.

Changed in cloud-init (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 0.7.7~bzr1192-0ubuntu2

---------------
cloud-init (0.7.7~bzr1192-0ubuntu2) xenial; urgency=medium

  [Logan Rosen]
  * debian/cloud-init.postinst: fix shell syntax in upgrade (LP: #1564187)

 -- Scott Moser <email address hidden> Thu, 31 Mar 2016 10:09:09 -0400

Changed in cloud-init (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.