Public bug reported:

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]

** Affects: placement (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic third-party-packages

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1833771

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/placement/+bug/1833771/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to