Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9344630
entrypoint.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
620 B
Subscribers
None
entrypoint.sh
View Options
#!/usr/bin/env bash
if
[
"
$(
ls
-A
/usr/local/share/ca-certificates/
)
"
]
;
then
update-ca-certificates
fi
# Prior art:
# - https://github.com/renskiy/cron-docker-image/blob/5600db37acf841c6d7a8b4f3866741bada5b4622/debian/start-cron#L34-L36
# - https://blog.knoldus.com/running-a-cron-job-in-docker-container/
declare
-p
|
grep
-Ev
'BASHOPTS|BASH_VERSINFO|EUID|PPID|SHELLOPTS|UID'
>
/container.env
{
for
cron_job
in
"
$@
"
;
do
echo
-e
"SHELL=/bin/bash
BASH_ENV=/container.env
${
cron_job
}
> /proc/1/fd/1 2>/proc/1/fd/2"
;
done
}
\
|
sed
--regexp-extended
's/\\(.)/\1/g'
\
|
crontab
-
crontab
-l
exec
cron
-f
-l
-L
15
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Fri, Jul 4, 2:38 PM (4 d, 13 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3249905
Attached To
R206 getsentry-onpremise
Event Timeline
Log In to Comment