Skip to content

Commit

Permalink
Issue RotherOSS#51: set PATH when starting the Daemon per Cron
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed May 29, 2020
1 parent 4700cb6 commit f126c0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,12 @@ RUN cd Kernel \
&& cd ../var/cron && for foo in *.dist; do cp $foo `basename $foo .dist`; done

# make sure that var/tmp exists and generate the crontab for OTOBO_USER
# Set PATH as the required perl is located in /usr/local/bin/perl.
USER $OTOBO_USER
RUN mkdir -p var/tmp \
&& echo "# File added by Dockerfile" > var/cron/aab_path \
&& echo "# Let '/usr/bin/env perl' find perl 5.30 in /usr/local/bin" >> var/cron/aab_path \
&& echo "PATH=/usr/local/bin:/usr/bin:/bin" >> var/cron/aab_path \
&& ./bin/Cron.sh start
USER root

Expand Down

0 comments on commit f126c0a

Please sign in to comment.