mirror of
https://github.com/casjaysdevdocker/bind
synced 2024-11-22 05:23:09 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/root/docker/setup/03-files.sh
This commit is contained in:
parent
0146db6487
commit
ab5e9e1564
@ -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
|
||||||
@ -43,7 +43,7 @@ if [ -d "/tmp/var" ]; then
|
|||||||
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"
|
||||||
copy "$var"/* "/var/$name/"
|
copy "$var/." "/var/$name/"
|
||||||
else
|
else
|
||||||
copy "$var" "/var/$name"
|
copy "$var" "/var/$name"
|
||||||
fi
|
fi
|
||||||
@ -57,9 +57,9 @@ if [ -d "/tmp/etc" ]; then
|
|||||||
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"
|
||||||
copy "$config"/* "/etc/$name/"
|
copy "$config/." "/etc/$name/"
|
||||||
mkdir -p "/usr/local/share/template-files/config/$name"
|
mkdir -p "/usr/local/share/template-files/config/$name"
|
||||||
copy "$config"/* "/usr/local/share/template-files/config/$name/"
|
copy "$config/." "/usr/local/share/template-files/config/$name/"
|
||||||
else
|
else
|
||||||
copy "$config" "/etc/$name"
|
copy "$config" "/etc/$name"
|
||||||
copy "$config" "/usr/local/share/template-files/config/$name"
|
copy "$config" "/usr/local/share/template-files/config/$name"
|
||||||
@ -74,7 +74,7 @@ if [ -d "/tmp/data" ]; then
|
|||||||
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"
|
||||||
copy "$data"/* "/usr/local/share/template-files/data/$name/"
|
copy "$data/." "/usr/local/share/template-files/data/$name/"
|
||||||
else
|
else
|
||||||
copy "$data" "/usr/local/share/template-files/data/$name"
|
copy "$data" "/usr/local/share/template-files/data/$name"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user