Skip to content

Commit

Permalink
docs: fix install / update commands to handle overwrite previous down…
Browse files Browse the repository at this point in the history
…loads
  • Loading branch information
warriordog committed Jul 21, 2024
1 parent aa4e36d commit aeed851
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Make sure to substitute all variables for their correct values.

1. Create a service account for ModShark: `sudo useradd -s /bin/bash -d /home/modshark -m modshark`
2. Log into the service account: `sudo su - modshark`
3. Download the [latest release package](https://github.com/warriordog/ModShark/releases/latest): `wget https://github.com/warriordog/ModShark/releases/latest/download/ModShark-latest.zip`
3. Download the [latest release package](https://github.com/warriordog/ModShark/releases/latest): `wget -O ModShark-latest.zip https://github.com/warriordog/ModShark/releases/latest/download/ModShark-latest.zip`
4. Extract the release package into a directory: `mkdir ModShark && bsdtar -xvf ModShark-latest.zip -C ModShark`
5. Create the production config file (see the [Configuration section](#Configuration) for details): `nano ModShark/appsettings.Production.json`
6. Run the latest database migrations: `psql -U $postgres_user -W -d $sharkey_database -a -f ModShark/update-ModShark-migrations.sql`
Expand All @@ -159,7 +159,7 @@ Make sure to substitute all variables for their correct values.

1. Stop the ModShark service, if it's running: `sudo systemctl stop modshark`
2. Log into the ModShark service account: `sudo su - modshark`
3. Download the [latest release package](https://github.com/warriordog/ModShark/releases/latest): `wget https://github.com/warriordog/ModShark/releases/latest/download/ModShark-latest.zip`
3. Download the [latest release package](https://github.com/warriordog/ModShark/releases/latest): `wget -O ModShark-latest.zip https://github.com/warriordog/ModShark/releases/latest/download/ModShark-latest.zip`
4. Extract the release package into your installation directory, overwriting any files: `mkdir ModShark && bsdtar -xvf ModShark-latest.zip -C ModShark`
5. Run the latest database migrations: `psql -U $postgres_user -W -d $sharkey_database -a -f ModShark/update-ModShark-migrations.sql`
6. Return to an admin account: `exit`
Expand Down

0 comments on commit aeed851

Please sign in to comment.