mirror of
https://github.com/casjaysdevdocker/buildah
synced 2025-01-18 12:34:21 -05:00
🗃️ Committing everything that changed 🗃️
This commit is contained in:
parent
f035297e63
commit
e6ac1b48e7
@ -195,9 +195,9 @@ if [ -n "$DEFAULT_TEMPLATE_DIR" ]; then
|
|||||||
create_template_name="$(basename "$create_config_template")"
|
create_template_name="$(basename "$create_config_template")"
|
||||||
if [ -d "$create_config_template" ]; then
|
if [ -d "$create_config_template" ]; then
|
||||||
mkdir -p "/config/$create_template_name/"
|
mkdir -p "/config/$create_template_name/"
|
||||||
cp -Rf "$create_config_template/." "/config/$create_template_name/" 2>/dev/null
|
[ -e "/config/$create_template_name" ] || cp -Rf "$create_config_template/." "/config/$create_template_name/" 2>/dev/null
|
||||||
elif [ -e "$create_config_template" ]; then
|
elif [ -e "$create_config_template" ]; then
|
||||||
cp -Rf "$create_config_template" "/config/$create_template_name" 2>/dev/null
|
[ -e "/config/$create_template_name" ] || cp -Rf "$create_config_template" "/config/$create_template_name" 2>/dev/null
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -214,9 +214,9 @@ if [ -n "$DEFAULT_CONF_DIR" ]; then
|
|||||||
if [ -n "$create_config_template" ]; then
|
if [ -n "$create_config_template" ]; then
|
||||||
if [ -d "$create_config_template" ]; then
|
if [ -d "$create_config_template" ]; then
|
||||||
mkdir -p "/config/$create_config_name"
|
mkdir -p "/config/$create_config_name"
|
||||||
cp -Rf "$create_config_template/." "/config/$create_config_name/" 2>/dev/null
|
[ -e "/config/$create_config_name" ] || cp -Rf "$create_config_template/." "/config/$create_config_name/" 2>/dev/null
|
||||||
elif [ -e "$create_config_template" ]; then
|
elif [ -e "$create_config_template" ]; then
|
||||||
cp -Rf "$create_config_template" "/config/$create_config_name" 2>/dev/null
|
[ -e "/config/$create_config_name" ] || cp -Rf "$create_config_template" "/config/$create_config_name" 2>/dev/null
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -233,9 +233,9 @@ if [ -d "/data" ]; then
|
|||||||
if [ -n "$create_data_template" ]; then
|
if [ -n "$create_data_template" ]; then
|
||||||
if [ -d "$create_data_template" ]; then
|
if [ -d "$create_data_template" ]; then
|
||||||
mkdir -p "/data/$create_data_name"
|
mkdir -p "/data/$create_data_name"
|
||||||
cp -Rf "$create_data_template/." "/data/$create_data_name/" 2>/dev/null
|
[ -e "/data/$create_data_name" ] || cp -Rf "$create_data_template/." "/data/$create_data_name/" 2>/dev/null
|
||||||
elif [ -e "$create_data_template" ]; then
|
elif [ -e "$create_data_template" ]; then
|
||||||
cp -Rf "$create_data_template" "/data/$create_data_name" 2>/dev/null
|
[ -e "/data/$create_data_name" ] || cp -Rf "$create_data_template" "/data/$create_data_name" 2>/dev/null
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -263,14 +263,18 @@ if [ -d "/config" ]; then
|
|||||||
fi
|
fi
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Copy html files
|
# Copy html files
|
||||||
if [ "$DATA_DIR_INITIALIZED" = "false" ] && [ -d "$DEFAULT_DATA_DIR/data/htdocs" ]; then
|
if [ "$DATA_DIR_INITIALIZED" = "false" ] && [ -n "$WWW_ROOT_DIR" ]; then
|
||||||
cp -Rf "$DEFAULT_DATA_DIR/data/htdocs/." "$WWW_ROOT_DIR/" 2>/dev/null
|
if [ -d "$DEFAULT_DATA_DIR/data/htdocs" ]; then
|
||||||
|
[ "$(ls -A "$WWW_ROOT_DIR/" 2>/dev/null | wc -l)" -ne 0 ] || cp -Rf "$DEFAULT_DATA_DIR/data/htdocs/." "$WWW_ROOT_DIR/" 2>/dev/null
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
if [ -n "$WWW_ROOT_DIR" ]; then
|
||||||
if [ -d "$DEFAULT_DATA_DIR/htdocs/www" ] && [ ! -d "$WWW_ROOT_DIR" ]; then
|
if [ -d "$DEFAULT_DATA_DIR/htdocs/www" ] && [ ! -d "$WWW_ROOT_DIR" ]; then
|
||||||
mkdir -p "$WWW_ROOT_DIR"
|
mkdir -p "$WWW_ROOT_DIR"
|
||||||
cp -Rf "$DEFAULT_DATA_DIR/htdocs/www/" "$WWW_ROOT_DIR"
|
cp -Rf "$DEFAULT_DATA_DIR/htdocs/www/" "$WWW_ROOT_DIR"
|
||||||
[ -f "$WWW_ROOT_DIR/htdocs/www/server-health" ] || echo "OK" >"$WWW_ROOT_DIR/htdocs/www/server-health"
|
[ -f "$WWW_ROOT_DIR/htdocs/www/server-health" ] || echo "OK" >"$WWW_ROOT_DIR/htdocs/www/server-health"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
[ -d "$SSL_DIR" ] || mkdir -p "$SSL_DIR"
|
[ -d "$SSL_DIR" ] || mkdir -p "$SSL_DIR"
|
||||||
if [ "$SSL_ENABLED" = "true" ] || [ "$SSL_ENABLED" = "yes" ]; then
|
if [ "$SSL_ENABLED" = "true" ] || [ "$SSL_ENABLED" = "yes" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user