🗃️ Committing everything that changed 🗃️

rootfs/tmp/etc/aria2/aria-ng.config.js
rootfs/tmp/etc/nginx/nginx.conf
rootfs/usr/local/etc/docker/init.d/00-aria2c.sh
rootfs/usr/local/etc/docker/init.d/zz-nginx.sh
This commit is contained in:
casjay
2025-05-13 17:50:29 -04:00
parent 0d671d8ee2
commit 5c19c0e5c1
4 changed files with 180 additions and 175 deletions

View File

@@ -221,6 +221,7 @@ __run_pre_execute_checks() {
__update_conf_files() {
local exitCode=0 # default exit code
local sysname="${SERVER_NAME:-${FULL_DOMAIN_NAME:-$HOSTNAME}}" # set hostname
local rpc_port="${RPC_PORT:-${RPC_LISTEN:-6800}}"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# delete files
#__rm ""
@@ -230,10 +231,8 @@ __update_conf_files() {
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# replace variables
# __replace "" "" "$CONF_DIR/nginx.conf"
# replace variables recursively
# __find_replace "" "" "$CONF_DIR"
__replace "REPLACE_RPC_PORT" "$rpc_port" "$CONF_DIR/nginx.conf"
__replace "REPLACE_SERVER_ADDR" "$CONTAINER_IP4_ADDRESS" "$CONF_DIR/nginx.conf"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# define actions