Compare commits
No commits in common. "Website" and "main" have entirely different histories.
23
README.md
23
README.md
@ -2,10 +2,25 @@
|
|||||||
Script that automaticly updates all your linux servers at once.
|
Script that automaticly updates all your linux servers at once.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
Clone the repository
|
||||||
```bash
|
```bash
|
||||||
sudo chown www-data:www-data /path/to/servers.txt
|
git clone https://git.moelle.space/hxcde/batchupdate.git
|
||||||
```
|
```
|
||||||
|
Edit `servers.conf`, add the servers IPs in the List<br>
|
||||||
|
Example:
|
||||||
```bash
|
```bash
|
||||||
sudo chmod 664 /path/to/servers.txt
|
10.0.0.1
|
||||||
```
|
10.0.0.2
|
||||||
|
10.0.0.3
|
||||||
|
```
|
||||||
|
Run the `setup-servers` script. You will be asked to enter the root Password. The script will add its key to `authorized_keys`
|
||||||
|
```bash
|
||||||
|
bash setup-servers
|
||||||
|
```
|
||||||
|
## Update the Servers from the list
|
||||||
|
Run the update script, it should check if updates are available
|
||||||
|
```bash
|
||||||
|
bash runupdate
|
||||||
|
```
|
||||||
|
## Edit the list
|
||||||
|
After adding new servers to `servers.conf`, don't forget to run `setup-servers`.
|
Loading…
Reference in New Issue
Block a user