From 1cd4c860bf61bd3e83fb5852dd3972fd1b070542 Mon Sep 17 00:00:00 2001 From: postscriptum Date: Thu, 3 Jul 2025 16:12:02 +0300 Subject: [PATCH] fix markdown list items --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index b94e9ba..61ae8e6 100644 --- a/README.md +++ b/README.md @@ -81,15 +81,15 @@ To use `snac2nex` as the `systemd` service, install binary to the canonical syst * `git clone https://codeberg.org/postscriptum/snac2nex.git && cd snac2nex` * `cargo build --release` * `sudo install target/release/snac2nex /usr/local/bin/snac2nex` - * tip: now you may want to clean the `snac2nex` sources folder to free up disk space + * tip: now you may want to clean the `snac2nex` sources folder to free up disk space Setup shared access permissions: 1. `useradd -m snac2nex` - create new user with home dir (for log files) 2. `usermod -aG snac snac2nex` - replace `snac` with the `systemd` group for your [Snac](https://codeberg.org/grunfink/snac2) server - * `chmod -R g+r /path/to/snac/storage` - give the group read permissions to Snac directories + * `chmod -R g+r /path/to/snac/storage` - give the group read permissions to Snac directories 3. `usermod -aG nexy snac2nex` - replace `nexy` with the `systemd` group for your your Nex protocol server (e.g. [Nexy](https://github.com/YGGverse/nexy)) - * `chmod -R g+rw /path/to/nex` - give the group read/write permissions to Nex directories + * `chmod -R g+rw /path/to/nex` - give the group read/write permissions to Nex directories Create new `systemd` configuration file `/etc/systemd/system/snac2nex.service`: ``` snac2nex.service @@ -111,12 +111,12 @@ StandardError=file:/home/snac2nex/error.log WantedBy=multi-user.target ``` * replace `ExecStart` arguments with your values, where: - * `-s` - Snac `storage` location - * `-u` - Snac `user`(s) to sync - * `-t` - Nex server `target` location for public files - * `-r` - is `rotate` every hour (`3600` seconds) to apply Snac instance updates (instead of export once) - * `-d` - enable `daemon` mode, which disables some debug output, to prevent extra write operations - * optionally, include `-a` (`attachment`) as `c` (`copy`) | `h` (`hard` link) | `s` (`soft` link) + * `-s` - Snac `storage` location + * `-u` - Snac `user`(s) to sync + * `-t` - Nex server `target` location for public files + * `-r` - is `rotate` every hour (`3600` seconds) to apply Snac instance updates (instead of export once) + * `-d` - enable `daemon` mode, which disables some debug output, to prevent extra write operations + * optionally, include `-a` (`attachment`) as `c` (`copy`) | `h` (`hard` link) | `s` (`soft` link) * `systemctl daemon-reload` - apply new `systemd` configuration * `systemctl enable snac2nex` - auto-start `snac2nex` sync on system boot * `systemctl start snac2nex` - start `snac2nex` sync now