Debian Bug report logs - #584118
postinst is not failsafe

version graph

Package: eucalyptus-nc; Maintainer for eucalyptus-nc is (unknown);

Reported by: Steffen Moeller <steffen_moeller@gmx.de>

Date: Tue, 1 Jun 2010 12:33:01 UTC

Severity: normal

Found in version 1.6.2

Fixed in version 1.6.2-2+rm

Done: Debian FTP Masters <ftpmaster@ftp-master.debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Chris Grzegorczyk <grze@eucalyptus.com>:
Bug#584118; Package eucalyptus-nc. (Tue, 01 Jun 2010 12:33:04 GMT) (full text, mbox, link).


Acknowledgement sent to Steffen Moeller <steffen_moeller@gmx.de>:
New Bug report received and forwarded. Copy sent to Chris Grzegorczyk <grze@eucalyptus.com>. (Tue, 01 Jun 2010 12:33:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Steffen Moeller <steffen_moeller@gmx.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: postinst is not failsafe
Date: Tue, 01 Jun 2010 14:29:53 +0200
Package: eucalyptus-nc
Version: 1.6.2
Severity: normal

This following has some problems, see the # lines

if [ "$1" = "configure" ]
then
    adduser eucalyptus libvirtd 2>&1 > /dev/null || true
    adduser eucalyptus libvirt 2>&1 > /dev/null || true

    EUCA_HOME=`getent passwd eucalyptus | cut -f6 -d:`

	# It should be checked if [ -z "$EUCA_HOME" ]
	# and the script should fail if not

    if ! [ -d "$EUCA_HOME/.ssh" ]
    then
        mkdir -p "$EUCA_HOME/.ssh" 
    fi
    if ! [ -f "$EUCA_HOME/.ssh/authorized_keys" ]
    then
        touch "$EUCA_HOME/.ssh/authorized_keys"  || true
    fi


    chown -R eucalyptus:eucalyptus /var/lib/eucalyptus/.ssh || true 
	# This should most likely be $EUCA_HOME, not /var/lib/eucalyptus

    update-rc.d eucalyptus-nc start 99 2 3 4 5 . stop 20 0 1 6 . >/dev/null


	# The stopping should be performed when the current package is removed,
	# but I don't really mind this here...

    if which invoke-rc.d >/dev/null 2>&1; then
        invoke-rc.d eucalyptus-nc stop > /dev/null 2>&1 ||true
    else
        /etc/init.d/eucalyptus-nc stop > /dev/null 2>&1 ||true
    fi

    if which invoke-rc.d >/dev/null 2>&1; then
        invoke-rc.d eucalyptus-nc start ||true
    else
        /etc/init.d/eucalyptus-nc start ||true
    fi
fi

Some expert in postinst scripts please help.




Reply sent to Debian FTP Masters <ftpmaster@ftp-master.debian.org>:
You have taken responsibility. (Sat, 17 Dec 2011 01:27:16 GMT) (full text, mbox, link).


Notification sent to Steffen Moeller <steffen_moeller@gmx.de>:
Bug acknowledged by developer. (Sat, 17 Dec 2011 01:27:16 GMT) (full text, mbox, link).


Message #10 received at 584118-done@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 584115-done@bugs.debian.org,584116-done@bugs.debian.org,584118-done@bugs.debian.org,589582-done@bugs.debian.org,589815-done@bugs.debian.org,593050-done@bugs.debian.org,593331-done@bugs.debian.org,595873-done@bugs.debian.org,618110-done@bugs.debian.org,638399-done@bugs.debian.org,
Cc: eucalyptus@packages.debian.org, eucalyptus@packages.qa.debian.org
Subject: Bug#652376: Removed package(s) from unstable
Date: Sat, 17 Dec 2011 01:25:25 +0000
Version: 1.6.2-2+rm

Dear submitter,

as the package eucalyptus has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see http://bugs.debian.org/652376

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@debian.org.

Debian distribution maintenance software
pp.
Luca Falavigna (the ftpmaster behind the curtain)




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 14 Jan 2012 07:34:39 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jul 1 13:50:50 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.