Uploaded image for project: 'Indy Node'
  1. Indy Node
  2. INDY-1046

Wrong config path is used in vagrant validator script

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Complete
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      https://github.com/evernym/sovrin-environments/blob/master/vagrant/training/vb-multi-vm/scripts/validator.sh

       

      #--------------------------------------------------------
      echo 'Fixing Bugs'
      if grep -Fxq '[Install]' /etc/systemd/system/indy-node.service
      then
      #--------------------------------------------------------
      echo 'Fixing Bugs'
      if grep -Fxq '[Install]' /etc/systemd/system/indy-node.service
      then
      echo '[Install] section is present in indy-node target'
      else
      perl -p -i -e 's/\\n\\n/[Install]\\nWantedBy=multi-user.target\\n/' /etc/systemd/system/indy-node.service
      fi
      if grep -Fxq 'SendMonitorStats' /home/indy/.indy/indy_config.py
      then
      echo 'SendMonitorStats is configured in indy_config.py'
      else
      echo 'SendMonitorStats = False' >> /home/indy/.indy/indy_config.py
      fi
      chown indy:indy /home/indy/.indy/indy_config.py
      #--------------------------------------------------------
      _
      
       echo '[Install] section is present in indy-node target'
      else
       perl -p -i -e 's/\\n\\n/[Install]\\nWantedBy=multi-user.target\\n/' /etc/systemd/system/indy-node.service
      fi
      if grep -Fxq 'SendMonitorStats' /home/indy/.indy/indy_config.py
      then
       echo 'SendMonitorStats is configured in indy_config.py'
      else
       echo 'SendMonitorStats = False' >> /home/indy/.indy/indy_config.py
      fi
      chown indy:indy /home/indy/.indy/indy_config.py
      #--------------------------------------------------------
      

      File /home/indy/.indy/indy_config.py doesn't exist after file/folder changes.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              VladimirWork Vladimir Shishkin
              Reporter:
              ozheregelya Olga Zheregelya
              Watchers:
              Alexander Shcherbakov, Olga Zheregelya, Vladimir Shishkin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: