]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - dist/argeo-node/rpm/scripts/preinstall
Replace old scripts with JShell.
[lgpl/argeo-commons.git] / dist / argeo-node / rpm / scripts / preinstall
diff --git a/dist/argeo-node/rpm/scripts/preinstall b/dist/argeo-node/rpm/scripts/preinstall
deleted file mode 100644 (file)
index 2e46065..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-if [ $1 = "1" ];then
-       APP=argeo
-       
-       # check if user exists
-       /bin/id $APP 2>/dev/null
-       if [ $? -ne 0 ];then
-               echo Create user $APP...
-               useradd --system --home-dir /var/lib/$APP --shell /bin/bash --user-group --create-home $APP
-       else
-               echo User $APP already exists
-       fi
-       
-       mkdir -p /var/lib/$APP/{state,data,indexes}
-       chown -R $APP.$APP /var/lib/$APP
-fi
\ No newline at end of file