„runupdate“ ändern
This commit is contained in:
parent
0eb7f4ca04
commit
b18804513f
@ -1,7 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# List of servers to update
|
||||
servers=(10.0.0.50 10.0.0.51)
|
||||
# Read the server list from a file
|
||||
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
|
||||
user=root
|
||||
|
Loading…
Reference in New Issue
Block a user