Structure change and vissually fixing code to make it easier to read
This commit is contained in:
+41
-36
@@ -1,66 +1,71 @@
|
||||
#!/bin/bash
|
||||
#-----------------------------------------------------------------------------------------------
|
||||
#----------------------------- Master Variables for unRAID scripts -----------------------------
|
||||
#-----------------------------------------------------------------------------------------------
|
||||
# This is the master.conf file, it contains all the variables used by
|
||||
# all scripts.
|
||||
# ----------------------------------------------------------------------------------------------
|
||||
# ---------------------------- Master Variables for unRAID scripts -----------------------------
|
||||
# ----------------------------------------------------------------------------------------------
|
||||
# This is the master.conf file, it contains all the variables used by
|
||||
# all scripts.
|
||||
#
|
||||
# It is sourced by each script at runtime, so any changes here will
|
||||
# affect all scripts immediately.
|
||||
# It is sourced by each script at runtime, so any changes here will
|
||||
# affect all scripts immediately.
|
||||
#
|
||||
# This is where you should adjust any settings or variables
|
||||
# that you want to apply globally across all your scripts
|
||||
# This is where you should adjust any settings or variables
|
||||
# that you want to apply globally across all your scripts
|
||||
#
|
||||
#-----------------------------------------------------------------------------------------------
|
||||
#----------------- User Variables, Please adjust here in Master.conf as needed -----------------
|
||||
#-----------------------------------------------------------------------------------------------
|
||||
# ----------------------------------------------------------------------------------------------
|
||||
# ---------------- User Variables, Please adjust here in Master.conf as needed -----------------
|
||||
# ----------------------------------------------------------------------------------------------
|
||||
|
||||
#-------------------- Host Configuration --------------------
|
||||
# ----------------------- Host Configuration --------------------
|
||||
# List the Hostnames of both servers
|
||||
HOST1="unRAID-Gmer4Lfe"
|
||||
HOST2="unRAID-Jayred365"
|
||||
HOST1="unRAID-Gmer4Lfe"
|
||||
HOST2="unRAID-Jayred365"
|
||||
# Assign SSH keys for each host pair (adjust paths as needed) HOST1 from above
|
||||
# Must have its key added to HOST1_SSH_Key same applies for HOST2
|
||||
HOST1_SSH_KEY="/root/.ssh/Gmer4Lfe-rsync-key"
|
||||
HOST2_SSH_KEY="/root/.ssh/Jayred365-rsync-key"
|
||||
HOST1_SSH_KEY="/root/.ssh/Gmer4Lfe-rsync-key"
|
||||
HOST2_SSH_KEY="/root/.ssh/Jayred365-rsync-key"
|
||||
|
||||
# -------------------------- Logging ---------------------------
|
||||
ENABLE_LOGGING=true # false = only echo user-facing messages
|
||||
# -------------------------- Logging ----------------------------
|
||||
ENABLE_LOGGING=true # false = only echo user-facing messages
|
||||
|
||||
# ------------------ Git, Pull & Execute Script -----------------
|
||||
REPO_SSH="git@192.168.50.2:FailedProxy/Unraid_Scripts.git"
|
||||
TARGET_DIR="/mnt/user/appdata/unraid_scripts"
|
||||
SSH_KEY="/root/.ssh/id_gitea_rsync"
|
||||
SSH_PORT=221
|
||||
|
||||
#--------------------Rsync Script Defaults-----------------------
|
||||
# -------------------Rsync Script Defaults-----------------------
|
||||
# Network speed limit (KB/s)
|
||||
BW_LIMIT=12500
|
||||
BW_LIMIT=12500
|
||||
# Retry logic
|
||||
RETRY_COUNT=3
|
||||
RETRY_COUNT=3
|
||||
# Sleep between retries (seconds)
|
||||
SLEEP=300
|
||||
SLEEP=300
|
||||
# Max number of concurrently running rsync processes
|
||||
MAX_RSYNC_PROCS=1
|
||||
MAX_RSYNC_PROCS=1
|
||||
# Container start/stop/restart before and after rsync
|
||||
CRITICAL_CONTAINER_NAMES=("")
|
||||
CRITICAL_CONTAINER_NAMES=("")
|
||||
# Containers that need delayed before starting
|
||||
DELAYED_CONTAINERS=("")
|
||||
DELAYED_CONTAINERS=("")
|
||||
# Delay in seconds between starting containers, useful for things like Authelia
|
||||
CONTAINER_DELAY=5
|
||||
CONTAINER_DELAY=5
|
||||
# Not include logs during transfer
|
||||
EXCLUDE_DIRS=("")
|
||||
EXCLUDE_DIRS=("")
|
||||
# Default global rsync options
|
||||
DEFAULT_RSYNC_OPTS=(-av --info=progress2 --human-readable --bwlimit="$BW_LIMIT" --delete --inplace --no-whole-file)
|
||||
DEFAULT_RSYNC_OPTS=(-av --info=progress2 --human-readable --bwlimit="$BW_LIMIT" --delete --inplace --no-whole-file)
|
||||
|
||||
#-------------------- unRAID essentail scripts ------------------
|
||||
# ------------------- unRAID essentail scripts ------------------
|
||||
# unRAID reboot script user warning time (seconds)
|
||||
REBOOT_SLEEP=300
|
||||
REBOOT_SLEEP=300
|
||||
# unRAID mover stop script timeout (seconds)
|
||||
MOVER_STOP_TIMEOUT=300
|
||||
MOVER_STOP_TIMEOUT=300
|
||||
# docker_syslog_filter.sh filter file path
|
||||
FILTER_FILE="/etc/rsyslog.d/ignore-docker-veth.conf"
|
||||
FILTER_FILE="/etc/rsyslog.d/ignore-docker-veth.conf"
|
||||
# php_fpm_max_children.sh php-fpm config file path
|
||||
PHP_CONF="/etc/php-fpm.d/www.conf"
|
||||
PHP_CONF="/etc/php-fpm.d/www.conf"
|
||||
# php_fpm_max_children.sh max children value
|
||||
PHP_MAX_CHILDREN=250
|
||||
PHP_MAX_CHILDREN=250
|
||||
|
||||
#---------------------- Profile System -------------------------
|
||||
# --------------------- Profile System -------------------------
|
||||
# Profiles are inferred from the directory basename (lowercased)
|
||||
# Profile-specific rsync options (override global) must list all options as they do not inherit from global
|
||||
# For example, look up at global rsync options above
|
||||
|
||||
Reference in New Issue
Block a user