Details
-
Bug
-
Status: Closed
-
Resolution: No Longer Reproducible
-
Master
-
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:
- Unzip master bundle to linux server
- Set executable permission to db_upgrade.sh
- 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