diff options
| author | yalh76 <yalh@yahoo.com> | 2019-03-21 03:43:47 +0100 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2019-03-21 03:43:47 +0100 |
| commit | 737de6a78a3835be406824902604d4c736a34142 (patch) | |
| tree | 8733574c478ee165ce81d7f9d1d8eb5406b595dc /scripts | |
| parent | 3cea0bdc57d60c7f20320394f272b5fd41fd2a1e (diff) | |
| download | mastodon_ynh-737de6a78a3835be406824902604d4c736a34142.tar.gz mastodon_ynh-737de6a78a3835be406824902604d4c736a34142.tar.bz2 mastodon_ynh-737de6a78a3835be406824902604d4c736a34142.zip | |
Fix install steps
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/install | 4 | ||||
| -rw-r--r-- | scripts/upgrade | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/scripts/install b/scripts/install index bac4c95..0b6402f 100644 --- a/scripts/install +++ b/scripts/install @@ -160,8 +160,8 @@ ynh_system_user_create $app $final_path ynh_install_ruby --ruby_version=2.6.0 -/opt/rbenv/versions/2.6.0/bin/gem update --system -/opt/rbenv/versions/2.6.0/bin/gem install bundler --no-document +#/opt/rbenv/versions/2.6.0/bin/gem update --system +#/opt/rbenv/versions/2.6.0/bin/gem install bundler --no-document #================================================= # MODIFY A CONFIG FILE diff --git a/scripts/upgrade b/scripts/upgrade index 859b0fb..ecfdd12 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -149,10 +149,12 @@ ynh_system_user_create $app #================================================= # SPECIFIC UPGRADE #================================================= -# INSTALLING RUBY +# INSTALLING RUBY AND BUNDLER #================================================= ynh_install_ruby --ruby_version=2.6.0 +/opt/rbenv/versions/2.6.0/bin/gem update --system +/opt/rbenv/versions/2.6.0/bin/gem install bundler #================================================= # UPGRADE MASTODON @@ -163,8 +165,6 @@ chown -R "$app": "$final_path" pushd "$final_path/live" ynh_use_nodejs - sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/gem update --system - sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/gem install bundler if [ "$(lsb_release --codename --short)" == "jessie" ]; then sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/bundle install --deployment --without development test else |
