mirror of
https://github.com/casjaysdevdocker/deno
synced 2025-01-18 12:34:21 -05:00
🗃️ Committing everything that changed 🗃️
This commit is contained in:
parent
702b8b2edd
commit
e36bd93c14
@ -169,8 +169,10 @@ SET_USR_BIN=""
|
|||||||
if [ -n "$SET_USR_BIN" ]; then
|
if [ -n "$SET_USR_BIN" ]; then
|
||||||
echo "Setting up bin"
|
echo "Setting up bin"
|
||||||
for create_bin in $SET_USR_BIN; do
|
for create_bin in $SET_USR_BIN; do
|
||||||
|
if [ -n "$create_bin" ]; then
|
||||||
create_bin_name="$(basename "$create_bin")"
|
create_bin_name="$(basename "$create_bin")"
|
||||||
ln -sf "$create_bin" "$LOCAL_BIN_DIR/$create_bin_name"
|
ln -sf "$create_bin" "$LOCAL_BIN_DIR/$create_bin_name"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
@ -180,7 +182,14 @@ if [ "$CONFIG_DIR_INITIALIZED" = "false" ] && [ -d "/config" ]; then
|
|||||||
if [ -n "$DEFAULT_TEMPLATE_DIR" ] && [ -d "$DEFAULT_TEMPLATE_DIR" ]; then
|
if [ -n "$DEFAULT_TEMPLATE_DIR" ] && [ -d "$DEFAULT_TEMPLATE_DIR" ]; then
|
||||||
for create_template in "$DEFAULT_TEMPLATE_DIR"/*; do
|
for create_template in "$DEFAULT_TEMPLATE_DIR"/*; do
|
||||||
create_template_name="$(basename "$create_template")"
|
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
|
cp -Rf "$create_template" "/config/$create_template_name" 2>/dev/null
|
||||||
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -190,7 +199,14 @@ if [ "$CONFIG_DIR_INITIALIZED" = "false" ] && [ -d "/config" ]; then
|
|||||||
echo "Copying custom config files"
|
echo "Copying custom config files"
|
||||||
for create_config in "$DEFAULT_CONF_DIR"/*; do
|
for create_config in "$DEFAULT_CONF_DIR"/*; do
|
||||||
create_config_name="$(basename "$create_config")"
|
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
|
cp -Rf "$create_config" "/config/$create_config_name" 2>/dev/null
|
||||||
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
@ -199,18 +215,26 @@ if [ "$DATA_DIR_INITIALIZED" = "false" ] && [ -d "/data" ]; then
|
|||||||
echo "Copying data files"
|
echo "Copying data files"
|
||||||
for create_data in "$DEFAULT_DATA_DIR"/*; do
|
for create_data in "$DEFAULT_DATA_DIR"/*; do
|
||||||
create_data_name="$(basename "$create_data")"
|
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
|
cp -Rf "$create_data" "/data/$create_data_name" 2>/dev/null
|
||||||
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Copy /config to /etc
|
# Copy /config to /etc
|
||||||
if [ -d "/config" ]; then
|
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
|
for create_conf in /config/*; do
|
||||||
if [ -n "$create_conf" ]; then
|
if [ -n "$create_conf" ]; then
|
||||||
create_conf_name="$(basename "$create_conf")"
|
create_conf_name="$(basename "$create_conf")"
|
||||||
if [ -e "/etc/$create_conf_name" ]; then
|
if [ -e "/etc/$create_conf_name" ]; then
|
||||||
if [ -d "/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
|
cp -Rf "$create_conf/." "/etc/$create_conf_name/" 2>/dev/null
|
||||||
else
|
else
|
||||||
cp -Rf "$create_conf" "/etc/$create_conf_name" 2>/dev/null
|
cp -Rf "$create_conf" "/etc/$create_conf_name" 2>/dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user