Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-2899

Move set_symlinks.sh into the official git repo

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.1
    • Component/s: Development, QA/Testing
    • Labels:
      None

      Description

      At the moment, we're using this script to setup the symlinks for development environments:

      #!/bin/bash
      
      set -e
      set -u
      
      if grep -q  debian /etc/*-release; then
          IS_DEBIAN="1"
          IS_SUSE=""
      elif grep -q suse /etc/*-release; then
          IS_SUSE="1"
          IS_DEBIAN=""
      fi
      
      oadir=/srv/openattic
      
      rm -rf /usr/share/openattic
      ln -s $oadir/backend /usr/share/openattic
      ln -fs $oadir/backend/settings.py /etc/openattic/settings.py
      
      rm -rf /usr/share/openattic-gui
      ln -s $oadir/webui/app /usr/share/openattic-gui
      
      ln -sf $oadir/bin/oaconfig /usr/sbin/oaconfig
      
      rm -f /etc/dbus-1/system.d/openattic.conf #if it was a symlink before
      cp -f $oadir/etc/dbus-1/system.d/openattic.conf /etc/dbus-1/system.d/openattic.conf
      
      rm -rf /etc/sysconfig/openattic
      
      if [ "$IS_DEBIAN" ]; then
          ln -sf $oadir/debian/default/openattic                      /etc/default/openattic
      fi
      
      if [ "$IS_SUSE" ]; then
          #TODO test symlinks for suse
          cp $oadir/rpm/sysconfig/openattic.SUSE                  /etc/sysconfig/openattic
      fi
      

      We should move this to the official repository and make us of it in vagrant/install.sh

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              swagner Sebastian Wagner
              Reporter:
              swagner Sebastian Wagner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: