summaryrefslogtreecommitdiffstats
path: root/testing/asterisk/asterisk.pre-upgrade
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-11-17 10:30:37 +0200
committerTimo Teräs <timo.teras@iki.fi>2011-11-17 10:30:37 +0200
commite21aa81e21e52fd618dc5d7cae48f5d788c8991f (patch)
tree527f9994d79df7c86fdd719c6ece68fe031696d3 /testing/asterisk/asterisk.pre-upgrade
parentaf8f7454a4f2858316a5fb832da2a91ae0b4f890 (diff)
downloadaports-e21aa81e21e52fd618dc5d7cae48f5d788c8991f.tar.bz2
aports-e21aa81e21e52fd618dc5d7cae48f5d788c8991f.tar.xz
testing/asterisk: copied from main with upgrade to 10.0.0-rc2
Diffstat (limited to 'testing/asterisk/asterisk.pre-upgrade')
-rw-r--r--testing/asterisk/asterisk.pre-upgrade12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/asterisk/asterisk.pre-upgrade b/testing/asterisk/asterisk.pre-upgrade
new file mode 100644
index 000000000..09985d7cd
--- /dev/null
+++ b/testing/asterisk/asterisk.pre-upgrade
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+user=asterisk
+home=/var/lib/asterisk
+adduser -h $home -s /bin/false -D $user 2>/dev/null
+mkdir -p $home
+chown $user:$user $home
+
+addgroup dialout 2>/dev/null
+addgroup $user dialout 2>/dev/null
+exit 0
+