Skip to content

Commit

Permalink
install air-link using a login rather than interactive shell
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Jul 9, 2024
1 parent a0fce14 commit ab96420
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ The edge device needs to run a Linux-based OS and have Python >=3.8 installed.
> # install pyenv
> curl https://pyenv.run | bash
>
> # add pyenv to shell
> echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
> echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
> echo 'eval "$(pyenv init -)"' >> ~/.bashrc
> # add pyenv to login shell .profile, maybe also .bashrc, .zshrc, etc. depending on your shell
> # see https://github.com/pyenv/pyenv?tab=readme-ov-file#set-up-your-shell-environment-for-pyenv
> echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile
> echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile
> echo 'eval "$(pyenv init -)"' >> ~/.profile
>
> # source the bashrc
> source ~/.bashrc
Expand Down
2 changes: 1 addition & 1 deletion air_link/air_link.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ After=multi-user.target
[Service]
Type=simple
WorkingDirectory=/home/USER/
ExecStart=/bin/bash -i -c "air-link run"
ExecStart=/usr/bin/env bash --login -c "air-link run"
User=USER
Group=USER
Restart=always
Expand Down

0 comments on commit ab96420

Please sign in to comment.