{"action":"closed","issue":{"url":"https://api.github.com/repos/bitwalker/exrm/issues/390","repository_url":"https://api.github.com/repos/bitwalker/exrm","labels_url":"https://api.github.com/repos/bitwalker/exrm/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/bitwalker/exrm/issues/390/comments","events_url":"https://api.github.com/repos/bitwalker/exrm/issues/390/events","html_url":"https://github.com/bitwalker/exrm/issues/390","id":176063925,"number":390,"title":"RELX_REPLACE_OS_VARS boot script fails on awk with env vars containing certain characters","user":{"login":"novaugust","id":1207005,"avatar_url":"https://avatars.githubusercontent.com/u/1207005?v=3","gravatar_id":"","url":"https://api.github.com/users/novaugust","html_url":"https://github.com/novaugust","followers_url":"https://api.github.com/users/novaugust/followers","following_url":"https://api.github.com/users/novaugust/following{/other_user}","gists_url":"https://api.github.com/users/novaugust/gists{/gist_id}","starred_url":"https://api.github.com/users/novaugust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novaugust/subscriptions","organizations_url":"https://api.github.com/users/novaugust/orgs","repos_url":"https://api.github.com/users/novaugust/repos","events_url":"https://api.github.com/users/novaugust/events{/privacy}","received_events_url":"https://api.github.com/users/novaugust/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-09T17:28:56Z","updated_at":"2016-09-12T21:24:59Z","closed_at":"2016-09-12T21:24:59Z","body":"we had an environment variable, `export DB_PASSWORD='Pntu>x9hC<6&zX:e'` that prevented the boot script from getting anywhere, freezing in this area\r\n\r\n```sh\r\nif [ $RELX_REPLACE_OS_VARS ]; then\r\n    awk '{while(match($0,\"[$]{[^}]*}\")) {var=substr($0,RSTART+2,RLENGTH -3);gsub(\"[$]{\"var\"}\",ENVIRON[var])}}1' < $SYS_CONFIG > $SYS_CONFIG.2.config\r\n    SYS_CONFIG=$SYS_CONFIG.2.config\r\nfi\r\n```\r\n\r\n[source on GH](https://github.com/bitwalker/exrm/blob/9184f2e890cdd2692d43024a153c14d4bb7f7eae/priv/rel/files/boot#L181-L184)\r\n\r\nchanging to another password fixed the script and got our app up and running."}}
{"actor":{"display_login":"bitwalker"}}