„runupdate“ ändern
This commit is contained in:
parent
0eb7f4ca04
commit
b18804513f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user