postinst file fails if /var/lib/placement/placement.sqlite exists

Bug #1833771 reported by Gordon Atwood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
placement (Ubuntu)
New
Undecided
Unassigned

Bug Description

postinst file contains these instructions:

<snip>
if [ -e /var/lib/placement/placement.sqlite ];
    then
        chmod placement:placement /var/lib/placement/placement.sqlite
        chmod 640 /var/lib/placement/placement.sqlite
    fi
<snip>

The first 'chmod' has invalid syntax.

I suspect it should read:
  chown -R placement:placement /var/lib/placement/placement.sqlite

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: placement-common 1.0.0-0ubuntu1~cloud0 [origin: Canonical]
ProcVersionSignature: Ubuntu 4.15.0-50.54-generic 4.15.18
Uname: Linux 4.15.0-50-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
CrashDB:
 {
                "impl": "launchpad",
                "project": "cloud-archive",
                "bug_pattern_url": "http://people.canonical.com/~ubuntu-archive/bugpatterns/bugpatterns.xml",
             }
Date: Fri Jun 21 15:16:02 2019
InstallationDate: Installed on 2019-04-24 (58 days ago)
InstallationMedia: Ubuntu-Server 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210)
PackageArchitecture: all
ProcEnviron:
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
 TERM=xterm
 LANGUAGE=en_CA:en
 PATH=(custom, no user)
SourcePackage: placement
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.placement.placement.conf: [deleted]
modified.conffile..etc.placement.policy.yaml: [deleted]

Revision history for this message
Gordon Atwood (gatwood) wrote :
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.