Closed vincent-goossens closed 7 months ago
Looking at your script, it seems like $OHDEAR_API_TOKEN
might already be defined, so you should be able to just run the command as ~/.composer/vendor/bin/ohdear maintenance-period:start 52135 60
I managed to add the env variable by doing: export OHDEAR_API_TOKEN=$OHDEAR_API_TOKEN
php src/composer.phar global require ohdearapp/ohdear-cli && export OHDEAR_API_TOKEN=$OHDEAR_API_TOKEN && ~/.composer/vendor/bin/ohdear maintenance-period:start $OHDEAR_SITE_ID 60 && php src/composer.phar global remove ohdearapp/ohdear-cli
I am deploying via bitbucket pipeline and adding this package like this and: