Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change kanyun-worker config.

Change-Id: I50ae674e95b60d43cd31263867253dacc4ad5152
  • Loading branch information...
commit ede29c7bcc902fdd1f7fd2131ccf03ccdcf9911e 1 parent 4224723
@yaguangtang yaguangtang authored
Showing with 7 additions and 9 deletions.
  1. +7 −8 debian/kanyun-worker.preinst
  2. +0 −1  debian/source/format
View
15 debian/kanyun-worker.preinst
@@ -1,14 +1,13 @@
#!/bin/sh -e
-if [ "$1" = "configure" ]; then
- if ! getent group kanyun> /dev/null 2>&1; then
- addgroup --system kanyun>/dev/null
- fi
- if ! getent passwd kanyun> /dev/null 2>&1; then
- mkdir -p /var/lib/kanyun
- adduser --system --home /var/lib/kanyun --ingroup kanyun --no-create-home --shell /bin/false kanyun
- fi
+if ! getent group kanyun> /dev/null 2>&1; then
+ addgroup --system kanyun>/dev/null
fi
+if ! getent passwd kanyun> /dev/null 2>&1; then
+ mkdir -p /var/lib/kanyun
+ adduser --system --home /var/lib/kanyun --ingroup kanyun --no-create-home --shell /bin/false kanyun
+fi
+
mkdir -p /var/log/kanyun
mkdir -p /etc/kanyun
chown -R kanyun:kanyun /var/log/kanyun /etc/kanyun/ /var/lib/kanyun
View
1  debian/source/format
@@ -1 +0,0 @@
-3.0 (quilt)
Please sign in to comment.
Something went wrong with that request. Please try again.