From 64e7f2525224132b61ad6a5eb275631c829dbca0 Mon Sep 17 00:00:00 2001 From: Jonathan de Jong Date: Mon, 31 Mar 2025 13:27:25 +0200 Subject: [PATCH 1/2] add instruction to make asdf work when logging into it with sudo --- docs/docs/installation/debian_based_en.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/docs/installation/debian_based_en.md b/docs/docs/installation/debian_based_en.md index ba9ee3bd4..fb611ee88 100644 --- a/docs/docs/installation/debian_based_en.md +++ b/docs/docs/installation/debian_based_en.md @@ -50,6 +50,11 @@ First, install some dependencies needed to build Elixir and Erlang: sudo apt install curl unzip build-essential autoconf m4 libncurses5-dev libssh-dev unixodbc-dev xsltproc libxml2-utils libncurses-dev ``` +Second, make sure that erlang and elixir (via asdf) is reachable from `sudo -Hu akkoma`: +```shell +echo 'Defaults>akkoma secure_path="/sbin:/bin:/usr/sbin:/usr/bin:/var/lib/akkoma/.asdf/shims"' > /etc/sudoers.d/custom_path +``` + Then login to the `akkoma` user. Install asdf by following steps 1 to 3 on [their website](https://asdf-vm.com/guide/getting-started.html), then restart the shell to load asdf: From bb50e9050b6a23800c6192782b6a628d0d76a740 Mon Sep 17 00:00:00 2001 From: Jonathan de Jong Date: Sat, 26 Apr 2025 16:17:31 +0200 Subject: [PATCH 2/2] rearrange shims --- docs/docs/installation/debian_based_en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/installation/debian_based_en.md b/docs/docs/installation/debian_based_en.md index fb611ee88..83c979d2e 100644 --- a/docs/docs/installation/debian_based_en.md +++ b/docs/docs/installation/debian_based_en.md @@ -52,7 +52,7 @@ sudo apt install curl unzip build-essential autoconf m4 libncurses5-dev libssh-d Second, make sure that erlang and elixir (via asdf) is reachable from `sudo -Hu akkoma`: ```shell -echo 'Defaults>akkoma secure_path="/sbin:/bin:/usr/sbin:/usr/bin:/var/lib/akkoma/.asdf/shims"' > /etc/sudoers.d/custom_path +echo 'Defaults>akkoma secure_path="/var/lib/akkoma/.asdf/shims:/sbin:/bin:/usr/sbin:/usr/bin"' > /etc/sudoers.d/custom_path ``` Then login to the `akkoma` user.