Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-9373

Add the ability for administrators to modify the init logic for persistent user home directories.

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      The logic for persisting user home directories is currently injected into an init-container with the following -

                (echo "Checking for stow command"          STOW_COMPLETE=/home/user/.stow_completed          if command -v stow &> /dev/null; then            if  [ ! -f $STOW_COMPLETE ]; then              echo "Running stow command"              stow . -t /home/user/ -d /home/tooling/ --no-folding -v 2 > /home/user/.stow.log 2>&1              cp -n /home/tooling/.viminfo /home/user/.viminfo              cp -n /home/tooling/.bashrc /home/user/.bashrc              cp -n /home/tooling/.bash_profile /home/user/.bash_profile              touch $STOW_COMPLETE            else              echo "Stow command already run. If you wish to re-run it, delete $STOW_COMPLETE from the persistent volume and restart the workspace."            fi          else            echo "Stow command not found"          fi) || true 

      In some cases, additional logic or different logic is needed if the enterprise is using a customized UDI.

              dakwon@redhat.com David Kwon
              cgruver@redhat.com Charro Gruver
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: