jfrog / artifactory-docker-examples

Examples for using Artifactory Docker distribution in various environments
https://www.jfrog.com/artifactory/
Apache License 2.0
330 stars 299 forks source link

Fixed EOL (Windows to UNIX) in .env file #132

Closed nefarius closed 6 years ago

nefarius commented 6 years ago

Following the procedure for running Xray containerized fails on sudo ./prepareHostEnv.sh because the .env file has CRLF (Windows/DOS) line endings.

sudo ./prepareHostEnv.sh
./.env: line 5: $'\r': command not found
./.env: line 8: $'\r': command not found
./.env: line 13: $'\r': command not found
./.env: line 16: $'\r': command not found
./.env: line 22: $'\r': command not found
./.env: line 24: $'\r': command not found
/xrayng needed ownerships on /data
chown: invalid user: ‘1035\r:1035\r’

 failedo 1035g ownership of /data

Line endings got converted in this PR.

EDIT: tested on CentOS Linux release 7.5.1804 (Core)