diff --git a/rootfs/etc/s6-overlay/cont-init.d/00-config b/rootfs/etc/s6-overlay/cont-init.d/00-config new file mode 100755 index 0000000..ee6a6f1 --- /dev/null +++ b/rootfs/etc/s6-overlay/cont-init.d/00-config @@ -0,0 +1,21 @@ +#!/usr/bin/with-contenv bash +CONFIG_PATH=/config +mkdir -p "$CONFIG_PATH" +if [ ! -f "$CONFIG_PATH/config.xml" ]; then + cat > "$CONFIG_PATH/config.xml" << EOC + + + + + + + + + + +EOC + echo "Config created at $CONFIG_PATH/config.xml" +fi +if [ -n "$CLI_ARGS" ]; then + export CLI_ARGS +fi \ No newline at end of file