summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Mason <ms13sp@gmail.com>2009-07-20 15:06:55 +0000
committerMichael Mason <ms13sp@gmail.com>2009-07-20 15:06:55 +0000
commit361c722974fa927e2596ac8903c30a70556cc3f2 (patch)
tree6240332e6b51a2b0aaa8a08dd48b5fc82bf32e1b
parente374901731eb35599bd6735de4dd38560e3a79b8 (diff)
downloadaports-361c722974fa927e2596ac8903c30a70556cc3f2.tar.bz2
aports-361c722974fa927e2596ac8903c30a70556cc3f2.tar.xz
extra/tinyproxy Changed pre and post install scripts to match new standard
-rw-r--r--extra/tinyproxy/tinyproxy.install13
-rwxr-xr-xextra/tinyproxy/tinyproxy.post-install6
-rwxr-xr-xextra/tinyproxy/tinyproxy.pre-install6
3 files changed, 12 insertions, 13 deletions
diff --git a/extra/tinyproxy/tinyproxy.install b/extra/tinyproxy/tinyproxy.install
deleted file mode 100644
index 5fa366737..000000000
--- a/extra/tinyproxy/tinyproxy.install
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-case "$1" in
- pre_install)
- adduser -h /dev/null -s /bin/false -D tinyproxy 2>/dev/null
- ;;
- post_install)
- chown tinyproxy:tinyproxy /var/run/tinyproxy
- ;;
-esac
-
-# return with success even if user already exist
-exit 0
diff --git a/extra/tinyproxy/tinyproxy.post-install b/extra/tinyproxy/tinyproxy.post-install
new file mode 100755
index 000000000..ef518c616
--- /dev/null
+++ b/extra/tinyproxy/tinyproxy.post-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+chown tinyproxy:tinyproxy /var/run/tinyproxy
+
+# return with success even if user already exist
+exit 0
diff --git a/extra/tinyproxy/tinyproxy.pre-install b/extra/tinyproxy/tinyproxy.pre-install
new file mode 100755
index 000000000..d324b044e
--- /dev/null
+++ b/extra/tinyproxy/tinyproxy.pre-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+adduser -h /dev/null -s /bin/false -D tinyproxy 2>/dev/null
+
+# return with success even if user already exist
+exit 0