summarylogtreecommitdiffstats
path: root/fms.install
diff options
context:
space:
mode:
authornoiseless2015-06-09 00:58:54 +0300
committernoiseless2015-06-09 00:58:54 +0300
commit43d9549db9ac17e23933aeaa9b9648755d1b9249 (patch)
tree6548606760138524c24ab02255ca2c75ab0c46ad /fms.install
downloadaur-43d9549db9ac17e23933aeaa9b9648755d1b9249.tar.gz
Initial import
Diffstat (limited to 'fms.install')
-rw-r--r--fms.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/fms.install b/fms.install
new file mode 100644
index 000000000000..69daf5a40abb
--- /dev/null
+++ b/fms.install
@@ -0,0 +1,18 @@
+## arg 1: the new package version
+post_install() {
+ echo "==> An user "fms" is created which own the /opt/fms directory"
+ groupadd -g 114 fms
+ useradd -u 114 -g fms -d /opt/fms/ -s /bin/false fms &>/dev/null
+ echo "==> To start your node:"
+ echo "==> systemctl start fms.service"
+ echo "==> Go to http://127.0.0.1:8080/ to configure your node"
+ echo "==> Read /opt/fms/readme.txt for further info"
+}
+
+## arg 1: the old package version
+pre_remove() {
+ userdel fms &>/dev/null
+ groupdel fms &>/dev/null
+}
+
+# vim:set ts=2 sw=2 et: