=============================================
Using project directories as home directories
=============================================

This option changes the home directories from the standard ``/home/<username>``
location to the project directories. Then the package cache is saved in the
user project location. This works better when collaborating users are
installing or updating packages in the same project.

Because the package cache and the project are on the same filesystem, conda can
often also create hardlinks and not copy files. This saves disk space and saves
time when creating or cloning environments.

NOTE: This option should be enabled immediately after performing the
installation process and before any users have logged in to AEN. This ensures
that users will not have home directories in different places due to some
creating their home directories when the option was disabled and others
creating their home directories when the option was enabled.

#. In the ``/opt/wakari/wakari-compute/etc/wakari/wk-compute-launcher-config.json``
   file, add the ``projDirsAsHome`` key value and set it to ``true``.

   .. code-block:: bash

      , "projDirsAsHome": true
   
   NOTE: You must add the comma at the beginning of the line. If you add this
   line as the last key, you must remove any comma at the end of the line.

#. Restart the AEN compute service:

   .. code-block:: bash

      sudo service wakari-compute restart
