summarylogtreecommitdiffstats
path: root/inetsim.install
diff options
context:
space:
mode:
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
+}