[JIRA] (JENKINS-56911) Debian package postinst script does not support group names with spaces

2 views
Skip to first unread message

tom.laermans@hexagon.com (JIRA)

unread,
Apr 5, 2019, 8:45:02 AM4/5/19
to jenkinsc...@googlegroups.com
Tom Laermans created an issue
 
Jenkins / Bug JENKINS-56911
Debian package postinst script does not support group names with spaces
Issue Type: Bug Bug
Assignee: Kohsuke Kawaguchi
Components: packaging
Created: 2019-04-05 12:44
Priority: Major Major
Reporter: Tom Laermans

/etc/default/jenkins contains:

JENKINS_USER=svc-gsp-jenkins
JENKINS_GROUP="domain users"

Running apt-get dist-upgrade results in:

Setting up jenkins (2.170) ...
chown: invalid group: 'svc-gsp-jenkins:domain'
dpkg: error processing package jenkins (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
jenkins
E: Sub-process /usr/bin/dpkg returned an error code (1)

Changing line 53 in jenkins.postinst from

chown $JENKINS_USER:$JENKINS_GROUP /var/lib/jenkins /var/log/jenkins

to

{{ chown "$JENKINS_USER":"$JENKINS_GROUP" /var/lib/jenkins /var/log/jenkins}}

(and performing the same type of change on line 59 and 65 as well), resolves this issue.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

tom.laermans@hexagon.com (JIRA)

unread,
Apr 8, 2019, 4:50:03 AM4/8/19
to jenkinsc...@googlegroups.com
Tom Laermans updated an issue
Change By: Tom Laermans
/etc/default/jenkins contains:
{quote}JENKINS_USER=svc-
gsp- jenkins
JENKINS_GROUP="domain users"
{quote}

Running apt-get dist-upgrade results in:
{quote}Setting up jenkins (2.170) ...
chown: invalid group: 'svc-
gsp- jenkins:domain'

dpkg: error processing package jenkins (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
jenkins
E: Sub-process /usr/bin/dpkg returned an error code (1)
{quote}

Changing line 53 in jenkins.postinst from

{{chown $JENKINS_USER:$JENKINS_GROUP /var/lib/jenkins /var/log/jenkins}}

to

{
\ { chown "$JENKINS_USER":"$JENKINS_GROUP" /var/lib/jenkins /var/log/jenkins}}


(and performing the same type of change on line 59 and 65 as well), resolves this issue.

tom.laermans@hexagon.com (JIRA)

unread,
May 13, 2019, 9:16:07 AM5/13/19
to jenkinsc...@googlegroups.com
Tom Laermans updated an issue
/etc/default/jenkins contains:
{quote}JENKINS_USER=svc-jenkins

JENKINS_GROUP="domain users"
{quote}
Running apt-get dist-upgrade results in:
{quote}Setting up jenkins (2.170) ...
chown: invalid group: 'svc-jenkins:domain'

dpkg: error processing package jenkins (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
jenkins
E: Sub-process /usr/bin/dpkg returned an error code (1)
{quote}
Changing line 53 in jenkins.postinst from

{{chown $JENKINS_USER:$JENKINS_GROUP /var/lib/jenkins /var/log/jenkins}}

to

{
\ { chown "$JENKINS_USER":"$JENKINS_GROUP" /var/lib/jenkins /var/log/jenkins}}


(and performing the same type of change on line 59 and 65 as well), resolves this issue.
Reply all
Reply to author
Forward
0 new messages