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
8e12c5680b
commit
821cda38f4
@ -32,7 +32,7 @@ if [ -d "/tmp/bin" ]; then
|
|||||||
for bin in "/tmp/bin"/*; do
|
for bin in "/tmp/bin"/*; do
|
||||||
name="$(basename "$bin")"
|
name="$(basename "$bin")"
|
||||||
echo "Installing $name to /usr/local/bin/$name"
|
echo "Installing $name to /usr/local/bin/$name"
|
||||||
copy "$bin* "/usr/local/bin/$name"
|
copy "$bin"* "/usr/local/bin/$name"
|
||||||
chmod -f +x "/usr/local/bin/$name"
|
chmod -f +x "/usr/local/bin/$name"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
@ -40,14 +40,14 @@ unset bin
|
|||||||
if [ -d "/tmp/data" ]; then
|
if [ -d "/tmp/data" ]; then
|
||||||
for data in "/tmp/data"/*; do
|
for data in "/tmp/data"/*; do
|
||||||
name="$(basename "$data")"
|
name="$(basename "$data")"
|
||||||
echo "Installing $name to "/usr/local/share/template-files/data/$name"
|
echo "Installing $name to /usr/local/share/template-files/data/$name"
|
||||||
mkdir -p "/usr/local/share/template-files/data/$name"
|
mkdir -p "/usr/local/share/template-files/data/$name"
|
||||||
copy "$data"/* "/usr/local/share/template-files/data/$name"
|
copy "$data"/* "/usr/local/share/template-files/data/$name"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
unset data
|
unset data
|
||||||
if [ -d "/tmp/etc" ]; then
|
if [ -d "/tmp/etc" ]; then
|
||||||
for config in "/tmp/etc"/*
|
for config in "/tmp/etc"/*; do
|
||||||
name="${config//\/tmp\/etc/\/}"
|
name="${config//\/tmp\/etc/\/}"
|
||||||
echo "Installing $config to /etc/$name"
|
echo "Installing $config to /etc/$name"
|
||||||
if [ -d "$config" ]; then
|
if [ -d "$config" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user