Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-82846

Can't execute db_upgrade.sh because of wrong line ending

Details

    • Regression Bug

    Description

      When user wants to upgrade database to actual master, additional editing of db_upgrade.sh is needed because of dos line endings in script.

      Steps to reproduce:

      1. Unzip master bundle to linux server
      2. Set executable permission to db_upgrade.sh
      3. Try to run db_upgrade.sh

      Actual result: Can't run bash because of wrong file endings

      bash: ./db_upgrade.sh: /bin/bash^M: bad interpreter: No such file or directory
      

      Expected: Scipt is executed

      Failed on: Liferay master git id: ec0cd6cef31d38cabb58acea999a61f1bc7cd723 on Ubuntu 16.04

      Works correctly: Liferay 7.0.6 GA7 on Ubuntu 16.04

      Workaround:
      Executing following code in db_upgrade.sh directory:

      sed -i -e 's/\r$//' db_upgrade.sh
      

      Priority: L2 + S3 = 3

      Attachments

        Activity

          People

            albert.lee Albert Lee (Inactive)
            jan.turon Jan Turon (Inactive)
            Marta Elicegui Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 50 weeks, 4 days ago

              Packages

                Version Package
                Master