diff --git a/.drone.yml b/.drone.yml index 262b489..a1d7b73 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,6 +14,6 @@ steps: - cargo install mdbook --git https://github.com/Ruin0x11/mdBook.git --branch localization --rev 9d8147c --force --debug - apt-get update - - apt-get install git -y + - apt-get install git curl -y - ./update-includes.sh - mdbook build . diff --git a/src/en/administration/configuration.md b/src/en/administration/configuration.md index 9a1b449..2093670 100644 --- a/src/en/administration/configuration.md +++ b/src/en/administration/configuration.md @@ -17,4 +17,8 @@ cd server ```hjson {{#include ../../../include/config/defaults.hjson}} -``` \ No newline at end of file +``` + +## Lemmy-UI configuration + +Lemmy-UI can be configured using environment variables, detailed in its [README](https://github.com/LemmyNet/lemmy-ui#readme). diff --git a/update-includes.sh b/update-includes.sh index 12a005c..35f46c2 100755 --- a/update-includes.sh +++ b/update-includes.sh @@ -1,4 +1,15 @@ #!/bin/bash set -e -git clone https://github.com/LemmyNet/lemmy.git include --depth 1 \ No newline at end of file +LEMMY_VERSION=$(curl "https://raw.githubusercontent.com/LemmyNet/lemmy-ansible/main/VERSION") +if [ ! -d "include/.git" ] +then + git clone https://github.com/LemmyNet/lemmy.git include + cd include +else + cd include + git checkout main + git pull +fi +git fetch --tags +git checkout "$LEMMY_VERSION" \ No newline at end of file