]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - dist/slc/rpm/scripts/preinstall
Remove Maven
[gpl/argeo-slc.git] / dist / slc / rpm / scripts / preinstall
diff --git a/dist/slc/rpm/scripts/preinstall b/dist/slc/rpm/scripts/preinstall
deleted file mode 100644 (file)
index 9aa8464..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-if [ $1 = "1" ];then
-       APP=%{name}
-       
-       # check if user exists
-       /bin/id $APP 2>/dev/null
-       if [ $? -ne 0 ];then
-               # create application user (EL6)
-               echo Create user $APP...
-               useradd --system --home-dir /var/lib/$APP --shell /sbin/nologin --user-group --create-home $APP
-       fi
-       
-       # give read access to group on home
-       chmod g+r /var/lib/$APP
-       mkdir -p /var/lib/$APP/{conf,data}
-       chown $APP.$APP /var/lib/$APP/{conf,data}
-fi
\ No newline at end of file