aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/entrypoint.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh
index 786bcc6..35ef3e3 100755
--- a/docker/entrypoint.sh
+++ b/docker/entrypoint.sh
@@ -15,8 +15,10 @@ readonly script_dir
readonly cfg_path=/etc/cgitize/cgitize.toml
secure_repo_dir() {
+ [ ! -e "$cfg_path" ] && return 0
+
local dir
- dir="$( /get_output_dir.py -- "$cfg_path" )"
+ dir="$( "$script_dir/get_output_dir.py" -- "$cfg_path" )"
chmod -- o-rwx "$dir"
@@ -26,8 +28,12 @@ secure_repo_dir() {
chown -- :101 "$dir"
}
-main() {
+setup() {
secure_repo_dir
+}
+
+main() {
+ setup
exec "$script_dir/run_cron.sh" "$@"
}