🗃️ Committing everything that changed 🗃️

rootfs/root/docker/setup/03-files.sh
rootfs/tmp/
rootfs/usr/local/share/template-files/config/bind/named.conf
rootfs/usr/local/share/template-files/config/bind/rndc.key
rootfs/usr/local/share/template-files/config/nginx/fastcgi_params
rootfs/usr/local/share/template-files/config/nginx/mime.types
rootfs/usr/local/share/template-files/config/nginx/nginx.conf
rootfs/usr/local/share/template-files/config/php/php-fpm.conf
rootfs/usr/local/share/template-files/config/php/php-fpm.d/www.conf
rootfs/usr/local/share/template-files/config/php/php.ini
rootfs/usr/local/share/template-files/data/bind/root.cache
This commit is contained in:
casjay 2024-08-27 13:25:23 -04:00
parent c32b7195f3
commit 584deb888d
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145
10 changed files with 25 additions and 8 deletions

View File

@ -37,18 +37,22 @@ if [ -d "/tmp/bin" ]; then
done
fi
unset bin
if [ -d "/tmp/data" ]; then
for data in "/tmp/data"/*; do
name="$(basename "$data")"
echo "Installing $name to /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"
if [ -d "/tmp/var" ]; then
for var in "/tmp/var"/*; do
name="${var//\/tmp\/var\//}"
echo "Installing $var to /var/$name"
if [ -d "$var" ]; then
mkdir -p "/var/$name"
copy "$var"/* "/var/$name/"
else
copy "$var" "/var/$name"
fi
done
fi
unset data
unset var
if [ -d "/tmp/etc" ]; then
for config in "/tmp/etc"/*; do
name="${config//\/tmp\/etc/\/}"
name="${config//\/tmp\/etc\//}"
echo "Installing $config to /etc/$name"
if [ -d "$config" ]; then
mkdir -p "/etc/$name"
@ -62,6 +66,19 @@ if [ -d "/tmp/etc" ]; then
done
fi
unset config
if [ -d "/tmp/data" ]; then
for data in "/tmp/data"/*; do
name="${data//\/tmp\/data\//}"
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/"
else
copy "$data" "/usr/local/share/template-files/data/$name"
fi
done
fi
unset data
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Main script