issue with conditional in postinst

Bug #1564187 reported by Logan Rosen on 2016-03-31
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
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

Scott Moser (smoser) wrote :

Thanks for bug report.

Changed in cloud-init (Ubuntu):
status: New → Confirmed
importance: Undecided → High
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  Edit
Everyone can see this information.

Other bug subscribers