Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo: source: command not found #8

Open
tinuva opened this issue Nov 24, 2020 · 1 comment
Open

sudo: source: command not found #8

tinuva opened this issue Nov 24, 2020 · 1 comment

Comments

@tinuva
Copy link

tinuva commented Nov 24, 2020

When adding a /etc/config/startup.sh file to the configuration, I get the error sudo: source: command not found

docker-compose up -d --remove-orphans && docker-compose logs -f --tail 10 | grep nodejswatch
Creating nodejswatch ... done
Attaching to nodejswatch,
nodejswatch        | sudo: source: command not found
nodejswatch        | time="2020-11-24T08:16:17Z" level=info msg="read crontab: /tmp/generated_crontab" 
nodejswatch exited with code 1

Docker compose config:

  nodejswatch:
    container_name: nodejswatch
    image: thecodingmachine/nodejs:10-apache
    environment:
      - CRON_USER_1=www-data
      - CRON_SCHEDULE_1=*/5 * * * *
      - CRON_COMMAND_1=node /var/www/html/script.js
    volumes:
      - ${USERDIR}/docker/nodejswatch/data:/var/www/html
      - ${USERDIR}/docker/nodejswatch/config/startup.sh:/etc/container/startup.sh:ro

Is there something I am doing wrong? Contents of the script doesnt matter I just get the above error.

@tinuva
Copy link
Author

tinuva commented Nov 24, 2020

ok looks like using STARTUP_COMMAND_1 works so the above is not really needed, just odd that it throws that error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant