add instruction to make asdf work when logging into it with sudo
This commit is contained in:
parent
ff3aaa73ee
commit
64e7f25252
1 changed files with 5 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue