8369338216
All checks were successful
the build was successful
config generation is now done with jinja2 instead of sed. also added a way to do the dns challenge without fiddling with more than env vars. BREAKING CHANGE: a lot of env vars and volumes changed.
19 lines
560 B
Bash
Executable file
19 lines
560 B
Bash
Executable file
#!/bin/bash
|
|
s6-svc -O /etc/s6.d/dehydrated
|
|
|
|
# If config generation is turned on, generate a config from the template and current env vars
|
|
if [[ "$DEHYDRATED_GENERATE_CONFIG" == "yes" ]]; then
|
|
j2 /etc/dehydrated/config.j2 > /data/config
|
|
fi
|
|
|
|
# Set ownership to dehydrated on the relevant folders
|
|
chown -R ${UID}:${GID} /data
|
|
|
|
# Register to the CA
|
|
if [[ "$DEHYDRATED_ACCEPT_TERMS" == "yes" ]]; then
|
|
su-exec ${UID}:${GID} /opt/dehydrated/dehydrated --config /data/config --register --accept-terms
|
|
fi
|
|
|
|
# Run the weekly script once
|
|
/etc/periodic/weekly/dehydrated
|