From 3bdafffa02474d7e330264c3a07f59849517e5a4 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 16 Sep 2022 01:09:15 +0200 Subject: [PATCH] Fix pyenv: cannot rehash: /opt/pyenv/shims isn't writable --- scripts/ynh_install_python | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/ynh_install_python b/scripts/ynh_install_python index 4e03ff6..8434fa8 100644 --- a/scripts/ynh_install_python +++ b/scripts/ynh_install_python @@ -179,6 +179,7 @@ ynh_install_python () { # Create shims directory if needed mkdir -p "${pyenv_install_dir}/shims" + chmod -R a+w "${pyenv_install_dir}/shims" # Restore /usr/local/bin in PATH PATH=$CLEAR_PATH