Hello. I wonder if anyone can help figure out why my custom scripts will run on your prebuilt images, but not on images I build.
docker build -t chris/oscam --no-cache lscr.io/linuxserver/oscam:latest
docker create \
--name=OSCAM \
--restart=always \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/London \
-p 8888:8888 \
-p 9001:9001 \
-v /mnt/containers/OSCAM:/config \
-v /mnt/containers/OSCAM/startup-scripts:/custom-cont-init.d \
-v /mnt/containers/OSCAM/startup-services:/custom-services.d \
chris/oscam
I assume the scripts contents isn’t important as they only don’t work on mine, but here they are anyways…
Startup
#!/bin/bash
crontab -u abc /config/cron
#!/bin/bash
apk add python3
Services
#!/usr/bin/with-contenv bash
/usr/sbin/crond -f -S -l 0 -c /etc/crontabs
Log
-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/
Brought to you by linuxserver.io
-------------------------------------
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid: 1000
User gid: 1000
-------------------------------------
cont-init: info: /etc/cont-init.d/10-adduser exited 0
cont-init: info: running /etc/cont-init.d/30-config
cont-init: info: /etc/cont-init.d/30-config exited 0
cont-init: info: running /etc/cont-init.d/90-custom-folders
cont-init: info: /etc/cont-init.d/90-custom-folders exited 0
cont-init: info: running /etc/cont-init.d/99-custom-files
[custom-init] no custom files found exiting...
cont-init: info: /etc/cont-init.d/99-custom-files exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun oscam (no readiness notification)
services-up: info: copying legacy longrun pcscd (no readiness notification)
s6-rc: info: service legacy-services successfully started
s6-rc: info: service 99-ci-service-check: starting
[ls.io-init] done.
s6-rc: info: service 99-ci-service-check successfully started