mirror of
https://github.com/casjaysdevdocker/bind
synced 2024-11-25 11:23:11 -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
|
||||
name="$(basename "$bin")"
|
||||
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"
|
||||
done
|
||||
fi
|
||||
@ -43,7 +43,7 @@ if [ -d "/tmp/var" ]; then
|
||||
echo "Installing $var to /var/$name"
|
||||
if [ -d "$var" ]; then
|
||||
mkdir -p "/var/$name"
|
||||
copy "$var"/* "/var/$name/"
|
||||
copy "$var/." "/var/$name/"
|
||||
else
|
||||
copy "$var" "/var/$name"
|
||||
fi
|
||||
@ -57,9 +57,9 @@ if [ -d "/tmp/etc" ]; then
|
||||
echo "Installing $config to /etc/$name"
|
||||
if [ -d "$config" ]; then
|
||||
mkdir -p "/etc/$name"
|
||||
copy "$config"/* "/etc/$name/"
|
||||
copy "$config/." "/etc/$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
|
||||
copy "$config" "/etc/$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"
|
||||
if [ -d "$data" ]; then
|
||||
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
|
||||
copy "$data" "/usr/local/share/template-files/data/$name"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user