Blame view

application.post_install.inc.cmake.in 460 Bytes
772ec5a4   Peter M. Groen   Added cmake envir...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  # Make sure the mLogic group exists
  MLOGIC_GROUP=mlogic
  groupadd --force $MLOGIC_GROUP
  # Create the user
  appuserid=$(id -u @PROJECT_NAME@)
  if [ ! $appuserid ] ; then
      useradd --groups $MLOGIC_GROUP --no-create-home @PROJECT_NAME@
  fi
  # Prevent direct login
  passwd --lock @PROJECT_NAME@
  # Change group ownership of log folder
  chgrp $MLOGIC_GROUP @PROJCOMP_LOG_INSTALL_DIR@
  # Change group ownership of run folder
  chgrp $MLOGIC_GROUP @PROJCOMP_RUN_INSTALL_DIR@