{"action":"created","issue":{"url":"https://api.github.com/repos/joshisa/piwikstart/issues/4","repository_url":"https://api.github.com/repos/joshisa/piwikstart","labels_url":"https://api.github.com/repos/joshisa/piwikstart/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/joshisa/piwikstart/issues/4/comments","events_url":"https://api.github.com/repos/joshisa/piwikstart/issues/4/events","html_url":"https://github.com/joshisa/piwikstart/issues/4","id":192234433,"number":4,"title":"Making the config persistent","user":{"login":"petschni","id":4078440,"avatar_url":"https://avatars.githubusercontent.com/u/4078440?v=3","gravatar_id":"","url":"https://api.github.com/users/petschni","html_url":"https://github.com/petschni","followers_url":"https://api.github.com/users/petschni/followers","following_url":"https://api.github.com/users/petschni/following{/other_user}","gists_url":"https://api.github.com/users/petschni/gists{/gist_id}","starred_url":"https://api.github.com/users/petschni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petschni/subscriptions","organizations_url":"https://api.github.com/users/petschni/orgs","repos_url":"https://api.github.com/users/petschni/repos","events_url":"https://api.github.com/users/petschni/events{/privacy}","received_events_url":"https://api.github.com/users/petschni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-29T09:50:25Z","updated_at":"2016-11-29T15:56:25Z","closed_at":null,"body":"Sorry for opening another issue but I ran into the following: \r\n\r\nI execute the three steps: \r\n\r\n```\r\n$ cf files <replace_me_with_app_name> /app/fetchConfig.sh | sed -e '1,3d' > fetchConfig.sh\r\n$ chmod +x fetchConfig.sh\r\n$ ./fetchConfig.sh\r\n```\r\n\r\nBut when executing the script it only returns: \r\n\r\n`./fetchConfig.sh: line 3: piwikstart-1021: command not found`\r\n\r\nThis is what the config file looks like:\r\n\r\n```\r\n#!/bin/bash\r\nrm ./bluezone/configtweaks/config.ini.php\r\ncf files petschni | piwikstart-1021 /app/htdocs/piwik/config/config.ini.php | sed '/Plugins\\[\\] = \"ExampleAPI\"/d' | sed '/Plugins\\[\\] = \"ExamplePlugin\"/d' | sed '/Plugins\\[\\] = \"ExampleRssWidget\"/d' | sed '/Plugins\\[\\] = \"Feedback\"/d' > ./bluezone/configtweaks/config.ini.php\r\nsed -i -e '1,3d' ./bluezone/configtweaks/config.ini.php\r\n```\r\n\r\nAm I missing something here or is there a bug in the script?"},"comment":{"url":"https://api.github.com/repos/joshisa/piwikstart/issues/comments/263610332","html_url":"https://github.com/joshisa/piwikstart/issues/4#issuecomment-263610332","issue_url":"https://api.github.com/repos/joshisa/piwikstart/issues/4","id":263610332,"user":{"login":"joshisa","id":1133849,"avatar_url":"https://avatars.githubusercontent.com/u/1133849?v=3","gravatar_id":"","url":"https://api.github.com/users/joshisa","html_url":"https://github.com/joshisa","followers_url":"https://api.github.com/users/joshisa/followers","following_url":"https://api.github.com/users/joshisa/following{/other_user}","gists_url":"https://api.github.com/users/joshisa/gists{/gist_id}","starred_url":"https://api.github.com/users/joshisa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshisa/subscriptions","organizations_url":"https://api.github.com/users/joshisa/orgs","repos_url":"https://api.github.com/users/joshisa/repos","events_url":"https://api.github.com/users/joshisa/events{/privacy}","received_events_url":"https://api.github.com/users/joshisa/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T15:56:25Z","updated_at":"2016-11-29T15:56:25Z","body":":-)  Looks like there's a bug in how the fetchConfig.sh is echo'ed out in the .bluemix.yml.  As a temporary workaround, you can tweak the fetchConfig.sh script to look like this:\r\n```#!/bin/bash\r\nrm ./bluezone/configtweaks/config.ini.php\r\ncf files <your_app_name> /app/htdocs/piwik/config/config.ini.php | sed '/Plugins\\[\\] = \"ExampleAPI\"/d' | sed '/Plugins\\[\\] = \"ExamplePlugin\"/d' | sed '/Plugins\\[\\] = \"ExampleRssWidget\"/d' | sed '/Plugins\\[\\] = \"Feedback\"/d' > ./bluezone/configtweaks/config.ini.php\r\nsed -i -e '1,3d' ./bluezone/configtweaks/config.ini.php\r\n```\r\n\r\nI made a change to handle the toolchain button path of creation [here](https://github.com/joshisa/piwikstart/commit/6e5a2d65ea5624c3a264c5e04b2a2db0dac21dfe#diff-08f092e552d9dde12f33c593ff31d8fe).  To further debug, how did you deploy the project (e.g.  via the Deploy to Bluemix OR Create Toolchain?).  I'm guessing the former in which case the fix is pretty straightforward.  Hope things go more smoothly for you from here.    "}}
{"actor":{"display_login":"joshisa"}}