Files
Howard Tseng 18367bd1b1 Apply suggestions from code review
Signed-off-by: Howard Tseng <howardt12345@gmail.com>
2024-09-28 21:41:43 -04:00

18 lines
635 B
Plaintext
Executable File

#!/usr/bin/with-contenv bash
# This is an install script that is designed to run after init-mods-package-install
# so it can take advantage of packages installed
# init-mods-end depends on this script so that later init and services wait until this script exits
echo "**** Setting up poetry ****"
# Install poetry
curl -sSL https://install.python-poetry.org | python3 -
# Add poetry to the path
echo "**** ensuring poetry is in PATH ****"
if ! grep -q "$HOME/.local/bin" /var/run/s6/container_environment/PATH; then
printf ':$HOME/.local/bin' >> /var/run/s6/container_environment/PATH
fi
echo "**** poetry setup complete ****"