summarylogtreecommitdiffstats
path: root/inetsim.install
diff options
context:
space:
mode:
authorShibumi2015-07-20 22:07:29 +0200
committerShibumi2015-07-20 22:07:29 +0200
commitcee8170b4719f15a06ec79ecc5bb6fa4353426db (patch)
treeb6c649ca5be1164717afc7baee22eebde1ebabe0 /inetsim.install
downloadaur-cee8170b4719f15a06ec79ecc5bb6fa4353426db.tar.gz
initial push to aur4
Diffstat (limited to 'inetsim.install')
-rw-r--r--inetsim.install23
1 files changed, 23 insertions, 0 deletions
diff --git a/inetsim.install b/inetsim.install
new file mode 100644
index 000000000000..c4e1998ea60c
--- /dev/null
+++ b/inetsim.install
@@ -0,0 +1,23 @@
+post_install() {
+ # add inetsim group
+ if [ ! `grep inetsim /etc/group` ]; then
+ groupadd -g 16 inetsim &>/dev/null
+ fi
+
+ # run inetsim setup script
+ cd /opt/inetsim
+ ./setup.sh
+
+ echo "[+] You can start the daemon with 'systemctl start inetsim'"
+ echo "[+] You find the conf files in /opt/inetsim/conf/"
+
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ # remove users & groups
+ groupdel inetsim &> /dev/null
+}