Skip to content

Making the config persistent #4

@petschni

Description

@petschni

Sorry for opening another issue but I ran into the following:

I execute the three steps:

$ cf files <replace_me_with_app_name> /app/fetchConfig.sh | sed -e '1,3d' > fetchConfig.sh
$ chmod +x fetchConfig.sh
$ ./fetchConfig.sh

But when executing the script it only returns:

./fetchConfig.sh: line 3: piwikstart-1021: command not found

This is what the config file looks like:

#!/bin/bash
rm ./bluezone/configtweaks/config.ini.php
cf 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
sed -i -e '1,3d' ./bluezone/configtweaks/config.ini.php

Am I missing something here or is there a bug in the script?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions