Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
EatPrilosec authored Aug 11, 2024
1 parent a8df2e4 commit 1d1d6ad
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,21 @@ RUN sudo -E -u user -g userg wineboot --init
ENV CronCommand /app/epg-start.sh


CMD <<EndOfStartScript

echo test
echo test2
usermod -u $PUID user
groupmod -g $PGID userg
usermod -a -G sudo user
chown -R user:userg $HOME
chown -R user:userg $WINEPREFIX
chown -R user:userg /app
env >/app/env
sudo -E --group=userg --user=user $CronCommand >/home/user/cron.log 2>/home/user/cron.log &
echo "$CronSchedule sudo -E --group=userg --user=user $CronCommand >/home/user/cron.log 2>/home/user/cron.log" >/home/user/cronfile
crontab /home/user/cronfile
cron &
tail -F /opt/cron.log

EndOfStartScript
CMD <<-EndOfStartScript

echo test
echo test2
usermod -u $PUID user
groupmod -g $PGID userg
usermod -a -G sudo user
chown -R user:userg $HOME
chown -R user:userg $WINEPREFIX
chown -R user:userg /app
env >/app/env
sudo -E --group=userg --user=user $CronCommand >/home/user/cron.log 2>/home/user/cron.log &
echo "$CronSchedule sudo -E --group=userg --user=user $CronCommand >/home/user/cron.log 2>/home/user/cron.log" >/home/user/cronfile
crontab /home/user/cronfile
cron &
tail -F /opt/cron.log
EndOfStartScript

0 comments on commit 1d1d6ad

Please sign in to comment.