Add Pelican stuff - not complete.

Add more Fabric Mods.
This commit is contained in:
Root User 2026-03-20 15:41:59 +01:00
parent 6d55338dd7
commit 3dd7f7bfe8
Signed by: root
GPG key ID: 087F0A95E5766D72
5 changed files with 92 additions and 4 deletions

View file

@ -117,6 +117,23 @@ else
exit 1
fi
# Todo make it conditional so that it is done only for compose-nix, I will probably make a Rust cli something like that
# Deploy Caddyfile from modules to runtime path so the Panel can use it
CADDY_SRC="${MODULES_TARGET}/songsheet/wavelog/Caddyfile"
CADDY_DST="/etc/pelican/Caddyfile"
print_info "Deploying Caddyfile from ${BOLD}${CADDY_SRC}${RESET} to ${BOLD}${CADDY_DST}${RESET}..."
if [[ -f "${CADDY_SRC}" ]]; then
if sudo mkdir -p "$(dirname "${CADDY_DST}")" && sudo cp "${CADDY_SRC}" "${CADDY_DST}" && sudo chown root:root "${CADDY_DST}" && sudo chmod 0644 "${CADDY_DST}"; then
print_success "Caddyfile deployed to ${CADDY_DST}"
else
print_error "Failed to deploy Caddyfile to ${CADDY_DST}"
exit 1
fi
else
print_error "Caddyfile not found at ${CADDY_SRC}; aborting deployment"
exit 1
fi
## Todo System Conditional pulling of directories (only if it exists)
# Step 2.1: Sync secrets directory