mirror of
https://github.com/casjaysdevdocker/bind
synced 2024-11-22 11:23:09 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/root/docker/setup/03-files.sh
This commit is contained in:
parent
584deb888d
commit
2b27abddad
@ -39,7 +39,7 @@ fi
|
|||||||
unset bin
|
unset bin
|
||||||
if [ -d "/tmp/var" ]; then
|
if [ -d "/tmp/var" ]; then
|
||||||
for var in "/tmp/var"/*; do
|
for var in "/tmp/var"/*; do
|
||||||
name="${var//\/tmp\/var\//}"
|
name="$(basename "$var")"
|
||||||
echo "Installing $var to /var/$name"
|
echo "Installing $var to /var/$name"
|
||||||
if [ -d "$var" ]; then
|
if [ -d "$var" ]; then
|
||||||
mkdir -p "/var/$name"
|
mkdir -p "/var/$name"
|
||||||
@ -52,7 +52,7 @@ fi
|
|||||||
unset var
|
unset var
|
||||||
if [ -d "/tmp/etc" ]; then
|
if [ -d "/tmp/etc" ]; then
|
||||||
for config in "/tmp/etc"/*; do
|
for config in "/tmp/etc"/*; do
|
||||||
name="${config//\/tmp\/etc\//}"
|
name="$(basename "$config")"
|
||||||
echo "Installing $config to /etc/$name"
|
echo "Installing $config to /etc/$name"
|
||||||
if [ -d "$config" ]; then
|
if [ -d "$config" ]; then
|
||||||
mkdir -p "/etc/$name"
|
mkdir -p "/etc/$name"
|
||||||
@ -68,7 +68,7 @@ fi
|
|||||||
unset config
|
unset config
|
||||||
if [ -d "/tmp/data" ]; then
|
if [ -d "/tmp/data" ]; then
|
||||||
for data in "/tmp/data"/*; do
|
for data in "/tmp/data"/*; do
|
||||||
name="${data//\/tmp\/data\//}"
|
name="$(basename "$bin")"
|
||||||
echo "Installing $data to /usr/local/share/template-files/data"
|
echo "Installing $data to /usr/local/share/template-files/data"
|
||||||
if [ -d "$data" ]; then
|
if [ -d "$data" ]; then
|
||||||
mkdir -p "/usr/local/share/template-files/data/$name"
|
mkdir -p "/usr/local/share/template-files/data/$name"
|
||||||
|
Loading…
Reference in New Issue
Block a user