aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2019-10-10 20:44:36 +0200
committeryalh76 <yalh@yahoo.com>2019-10-10 20:44:36 +0200
commit86f9caaaecc69d55d88185b1e2f9538a009e4feb (patch)
tree1f84085ffbf1c444421a591c4527d55bfc26b19d /scripts
parent3a9bc3df2eda8d84ec38bc5afecc9c11839834f2 (diff)
downloadmastodon_ynh-86f9caaaecc69d55d88185b1e2f9538a009e4feb.tar.gz
mastodon_ynh-86f9caaaecc69d55d88185b1e2f9538a009e4feb.tar.bz2
mastodon_ynh-86f9caaaecc69d55d88185b1e2f9538a009e4feb.zip
fix rbenv upgrade
Diffstat (limited to 'scripts')
-rw-r--r--scripts/ynh_install_ruby__23
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/ynh_install_ruby__2 b/scripts/ynh_install_ruby__2
index c08b5f4..f064c08 100644
--- a/scripts/ynh_install_ruby__2
+++ b/scripts/ynh_install_ruby__2
@@ -79,6 +79,9 @@ ynh_install_ruby () {
if ! type rbenv > /dev/null 2>&1
then
ynh_install_rbenv
+ elif dpkg --compare-versions "$(/opt/rbenv/bin/rbenv --version | cut -d" " -f2)" lt "1.1.2"
+ then
+ ynh_install_rbenv
fi
# Restore /usr/local/bin in PATH (if needed)