mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
packaging, issue #1647: Add docker groupname on the package release
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user