mirror of
https://codeberg.org/polyteknisk-radiogruppe/the_prg_server_configuration.git
synced 2026-06-14 02:38:58 +02:00
Add Pelican stuff - not complete.
Add more Fabric Mods.
This commit is contained in:
parent
6d55338dd7
commit
3dd7f7bfe8
5 changed files with 92 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue