HOW TO UPGRADE LEMMY
mv lemmy lemmy-<old-version>
git clone https://github.com/LemmyNet/lemmy.git lemmy
cd lemmy
git checkout <latest-version>
E.g.
git checkout 0.17.4
git submodule init
git submodule update --recursive --remote
echo "pub const VERSION: &str = \"$(git describe --tag)\";" > "crates/utils/src/version.rs"
cargo build --release
strip target/release/lemmy_server
cp target/release/lemmy_server /usr/bin/lemmy_server