🗃️ Committing everything that changed 🗃️

rootfs/root/docker/setup/03-files.sh
This commit is contained in:
casjay 2024-08-27 09:53:59 -04:00
parent 8e12c5680b
commit 821cda38f4
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145

View File

@ -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