„runupdate“ ändern

This commit is contained in:
Yann Mölle 2023-04-19 19:55:00 +02:00
parent 0eb7f4ca04
commit b18804513f

View File

@ -1,7 +1,12 @@
#!/bin/bash #!/bin/bash
# List of servers to update # Read the server list from a file
servers=(10.0.0.50 10.0.0.51) servers_file="servers.conf"
if [ ! -f "$servers_file" ]; then
echo "Error: $servers_file does not exist."
exit 1
fi
servers=($(cat "$servers_file"))
# SSH username for remote access # SSH username for remote access
user=root user=root