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

      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

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 6 weeks, 1 day ago

                Packages

                Version Package
                Master