Skip to content

Commit

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


CMD <<-EOF

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
bash -c "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 &
CMD 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 \
bash -c "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

EOF

0 comments on commit 4b4e0ac

Please sign in to comment.