Fix --display-config after http/2 change (#2028)

* Fix --display-config after http/2 change
* Update advanced-usage.md
This commit is contained in:
abraunegg 2022-07-03 21:03:27 +10:00 committed by GitHub
parent 0ab2955bd7
commit 3591eededc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -114,6 +114,13 @@ ExecStart=/usr/local/bin/onedrive --monitor --confdir="/home/myusername/.config/
```
Then you can safely run these commands:
#### Custom systemd service on Red Hat Enterprise Linux, CentOS Linux
```text
systemctl enable onedrive-my-new-config
systemctl start onedrive-my-new-config
```
#### Custom systemd service on Arch, Ubuntu, Debian, OpenSuSE, Fedora
```text
systemctl --user enable onedrive-my-new-config
systemctl --user start onedrive-my-new-config
@ -124,6 +131,11 @@ systemctl --user enable onedrive-my-new-config@myusername.service
systemctl --user start onedrive-my-new-config@myusername.service
```
#### Viewing systemd logs for the custom service
```text
journalctl --unit=onedrive-my-new-config -f
```
Repeat these steps for each OneDrive new account that you wish to use.
## Configuring the client to use multiple OneDrive accounts / configurations using Docker

View File

@ -679,7 +679,7 @@ int main(string[] args)
writeln("Config option 'azure_ad_endpoint' = ", cfg.getValueString("azure_ad_endpoint"));
writeln("Config option 'azure_tenant_id' = ", cfg.getValueString("azure_tenant_id"));
writeln("Config option 'user_agent' = ", cfg.getValueString("user_agent"));
writeln("Config option 'force_http_2' = ", cfg.getValueBool("force_http_2"));
writeln("Config option 'force_http_11' = ", cfg.getValueBool("force_http_11"));
writeln("Config option 'debug_https' = ", cfg.getValueBool("debug_https"));
writeln("Config option 'rate_limit' = ", cfg.getValueLong("rate_limit"));
writeln("Config option 'operation_timeout' = ", cfg.getValueLong("operation_timeout"));