Update README.md (#113)

This commit is contained in:
Techroy23 2022-10-17 04:03:02 +08:00 committed by GitHub
parent db1a3b2d47
commit c3f78c7b63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ go install github.com/bakito/adguardhome-sync@latest
Both the origin instance must be initially setup via the AdguardHome installation wizard.
## Run
## Run Linux/Mac
```bash
@ -55,6 +55,36 @@ adguardhome-sync run
adguardhome-sync run --cron "*/10 * * * *"
```
## Run Windows
```bash
@ECHO OFF
@TITLE AdGuardHome-Sync
REM set LOG_LEVEL=debug
set LOG_LEVEL=info
REM set LOG_LEVEL=warn
REM set LOG_LEVEL=error
set ORIGIN_URL=http://173.82.107.239:54321
set ORIGIN_USERNAME=admin
set ORIGIN_PASSWORD=Juriel@0805
set REPLICA_URL=http://127.0.0.1:54321
set REPLICA_USERNAME=admin
set REPLICA_PASSWORD=Juriel@0805
set FEATURES_DHCP=false
set FEATURES_DHCP_SERVERCONFIG=false
set FEATURES_DHCP_STATICLEASES=false
# run once
adguardhome-sync run
# run as daemon
adguardhome-sync run --cron "*/10 * * * *"
```
## docker cli
```bash