1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #1820 from dotcloud/1647-api-group

packaging, issue #1647: Add docker groupname on the package release
This commit is contained in:
Daniel Mizyrycki 2013-09-22 14:21:26 -07:00
commit 8240e37b87

View file

@ -51,11 +51,13 @@ bundle_ubuntu() {
cat >/tmp/postinstall <<EOF
#!/bin/sh
/sbin/stop docker || true
/bin/grep -q "^docker:" /etc/group || /usr/sbin/addgroup --system docker || true
/sbin/start docker
EOF
cat >/tmp/prerm <<EOF
#!/bin/sh
/sbin/stop docker || true
/usr/sbin/delgroup docker || true
EOF
chmod +x /tmp/postinstall /tmp/prerm