mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
packaging, issue #1647: Add docker groupname on the package release
This commit is contained in:
parent
2183644578
commit
dfd0deefbb
1 changed files with 2 additions and 0 deletions
|
@ -51,11 +51,13 @@ bundle_ubuntu() {
|
||||||
cat >/tmp/postinstall <<EOF
|
cat >/tmp/postinstall <<EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
/sbin/stop docker || true
|
/sbin/stop docker || true
|
||||||
|
/bin/grep -q "^docker:" /etc/group || /usr/sbin/addgroup --system docker || true
|
||||||
/sbin/start docker
|
/sbin/start docker
|
||||||
EOF
|
EOF
|
||||||
cat >/tmp/prerm <<EOF
|
cat >/tmp/prerm <<EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
/sbin/stop docker || true
|
/sbin/stop docker || true
|
||||||
|
/usr/sbin/delgroup docker || true
|
||||||
EOF
|
EOF
|
||||||
chmod +x /tmp/postinstall /tmp/prerm
|
chmod +x /tmp/postinstall /tmp/prerm
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue