1

I'm having trouble setting the variables of the env.sh file for craft-sctipts.

I getting an error: File /common/defaults.sh is missing, aborting. when I try to clear the cache using a cronjob pointing to the clear cache script.

My variables are set in the env.sh file, which is in the scripts directory. LOCAL_ROOT_PATH="/domains/mydomain.ca/" REMOTE_ROOT_PATH="/domains/mydomain.ca/"

The scripts are in /domains/mydomain.ca/scripts/ directory.

Any thoughts?

2
  • 1
    Those root paths aren't relative to your project root, they are meant to be absolute system paths - are the /domains folders at the root of your system? May 15, 2021 at 14:44
  • Yah... /domains is the top level directory (Shared Media Temple hosting). May 21, 2021 at 18:13

1 Answer 1

1

The other error Im getting is dirname: command not found.

I was able to solve this issue by just manually setting the DIR variable in the script I needed to use. There is probably a better way....

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.