🗃️ Committing everything that changed 🗃️

This commit is contained in:
casjay 2022-10-21 02:22:52 -04:00
parent 702b8b2edd
commit e36bd93c14
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F

View File

@ -169,8 +169,10 @@ SET_USR_BIN=""
if [ -n "$SET_USR_BIN" ]; then
echo "Setting up bin"
for create_bin in $SET_USR_BIN; do
if [ -n "$create_bin" ]; then
create_bin_name="$(basename "$create_bin")"
ln -sf "$create_bin" "$LOCAL_BIN_DIR/$create_bin_name"
fi
done
fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -180,7 +182,14 @@ if [ "$CONFIG_DIR_INITIALIZED" = "false" ] && [ -d "/config" ]; then
if [ -n "$DEFAULT_TEMPLATE_DIR" ] && [ -d "$DEFAULT_TEMPLATE_DIR" ]; then
for create_template in "$DEFAULT_TEMPLATE_DIR"/*; do
create_template_name="$(basename "$create_template")"
if [ -n "$create_template" ]; then
if [ -d "$create_template" ]; then
mkdir -p "/config/$create_template_name/"
cp -Rf "$create_template/." "/config/$create_template_name/" 2>/dev/null
else
cp -Rf "$create_template" "/config/$create_template_name" 2>/dev/null
fi
fi
done
fi
fi
@ -190,7 +199,14 @@ if [ "$CONFIG_DIR_INITIALIZED" = "false" ] && [ -d "/config" ]; then
echo "Copying custom config files"
for create_config in "$DEFAULT_CONF_DIR"/*; do
create_config_name="$(basename "$create_config")"
if [ -n "$create_config" ]; then
if [ -d "$create_config" ]; then
mkdir -p "/config/$create_config_name"
cp -Rf "$create_config/." "/config/$create_config_name/" 2>/dev/null
else
cp -Rf "$create_config" "/config/$create_config_name" 2>/dev/null
fi
fi
done
fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -199,18 +215,26 @@ if [ "$DATA_DIR_INITIALIZED" = "false" ] && [ -d "/data" ]; then
echo "Copying data files"
for create_data in "$DEFAULT_DATA_DIR"/*; do
create_data_name="$(basename "$create_data")"
if [ -n "$create_data" ]; then
if [ -d "$create_data" ]; then
mkdir -p "/data/$create_data_name"
cp -Rf "$create_data/." "/data/$create_data_name/" 2>/dev/null
else
cp -Rf "$create_data" "/data/$create_data_name" 2>/dev/null
fi
fi
done
fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Copy /config to /etc
if [ -d "/config" ]; then
[ "$DATA_DIR_INITIALIZED" = "false" ] && echo "Copying /config to /etc"
[ "$CONFIG_DIR_INITIALIZED" = "false" ] && echo "Copying /config to /etc"
for create_conf in /config/*; do
if [ -n "$create_conf" ]; then
create_conf_name="$(basename "$create_conf")"
if [ -e "/etc/$create_conf_name" ]; then
if [ -d "/etc/$create_conf_name" ]; then
mkdir -p "/etc/$create_conf_name/"
cp -Rf "$create_conf/." "/etc/$create_conf_name/" 2>/dev/null
else
cp -Rf "$create_conf" "/etc/$create_conf_name" 2>/dev/null