Browse Source

packaging, issue #1647: Add docker groupname on the package release

Daniel Mizyrycki 12 năm trước cách đây
mục cha
commit
dfd0deefbb
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      hack/make/ubuntu

+ 2 - 0
hack/make/ubuntu

@@ -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