diff options
| author | 2022-11-25 11:04:23 +0100 | |
|---|---|---|
| committer | 2022-11-25 11:04:23 +0100 | |
| commit | de5345e5bdb4ac29b19bed57eb4de47c1dc0d5d8 (patch) | |
| tree | ad5329a0e38afd131b5d2008ce2ed43e17b67f8f | |
| parent | Fixed return value of srv_open(). (diff) | |
| download | snac2-de5345e5bdb4ac29b19bed57eb4de47c1dc0d5d8.tar.gz snac2-de5345e5bdb4ac29b19bed57eb4de47c1dc0d5d8.tar.xz snac2-de5345e5bdb4ac29b19bed57eb4de47c1dc0d5d8.zip | |
Updated documentation.
| -rw-r--r-- | data.c | 2 | ||||
| -rw-r--r-- | doc/snac.1 | 5 | ||||
| -rw-r--r-- | doc/snac.8 | 9 |
3 files changed, 15 insertions, 1 deletions
| @@ -73,7 +73,7 @@ int srv_open(char *basedir, int auto_upgrade) | |||
| 73 | ret = db_upgrade(&error); | 73 | ret = db_upgrade(&error); |
| 74 | else { | 74 | else { |
| 75 | if (xs_number_get(xs_dict_get(srv_config, "layout")) < db_layout) | 75 | if (xs_number_get(xs_dict_get(srv_config, "layout")) < db_layout) |
| 76 | error = xs_fmt("ERROR: db layout changed - execute 'snac upgrade' first"); | 76 | error = xs_fmt("ERROR: disk layout changed - execute 'snac upgrade' first"); |
| 77 | else | 77 | else |
| 78 | ret = 1; | 78 | ret = 1; |
| 79 | } | 79 | } |
| @@ -145,6 +145,11 @@ Initializes the database. This is an interactive command; necessary | |||
| 145 | information will be prompted for. The | 145 | information will be prompted for. The |
| 146 | .Ar basedir | 146 | .Ar basedir |
| 147 | directory must not exist. | 147 | directory must not exist. |
| 148 | .It Cm upgrade Ar basedir | ||
| 149 | Upgrades the database disk layout after installing a new version. | ||
| 150 | Only necessary if | ||
| 151 | .Nm | ||
| 152 | complains and demands it. | ||
| 148 | .It Cm purge Ar basedir | 153 | .It Cm purge Ar basedir |
| 149 | Purges old data from the timeline of all users. | 154 | Purges old data from the timeline of all users. |
| 150 | .It Cm adduser Ar basedir Op uid | 155 | .It Cm adduser Ar basedir Op uid |
| @@ -69,6 +69,15 @@ startup scripts and configuration data in the | |||
| 69 | directory. | 69 | directory. |
| 70 | For other operating systems, please read the appropriate documentation | 70 | For other operating systems, please read the appropriate documentation |
| 71 | on how to install a daemon as a non-root service. | 71 | on how to install a daemon as a non-root service. |
| 72 | .Ss Upgrading to a new version | ||
| 73 | Sometimes, the database disk layout changes between versions. If there | ||
| 74 | is such a change, | ||
| 75 | .Nm | ||
| 76 | will refuse to run and require an upgrade. Do this by running | ||
| 77 | .Bd -literal -offset indent | ||
| 78 | snac upgrade $HOME/snac-data | ||
| 79 | .Ed | ||
| 80 | .Pp | ||
| 72 | .Ss Server Setup | 81 | .Ss Server Setup |
| 73 | .Pp | 82 | .Pp |
| 74 | An http server with TLS and proxying support must already be | 83 | An http server with TLS and proxying support must already be |