unkn0w / noobs

Kolekcja skryptów do szybkiego stawiania usług na serwerach Mikrusa
MIT License
251 stars 64 forks source link

Implemented chce_ruby.sh #111

Closed mikasjp closed 3 years ago

mikasjp commented 3 years ago

Prosta instalacja Ruby i jego bardzo popularnego menedżera wersji — rbenv

loper commented 3 years ago

`+ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer curl: (22) The requested URL returned error: 404

Powinien się zatrzymać, gdy jest jakiś błąd po drodze (np. pobierania).

loper commented 3 years ago

Jeszcze pozostaje kwestia błędnego urla: https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer image

loper commented 3 years ago

a ten pakiet jest w repo


apt install rbenv
mikasjp commented 3 years ago

Poprawione. Przerobiłem proces instalacji tak, żeby używał apt zamiast tego nieistniejącego skryptu.

loper commented 3 years ago

Teraz mam coś takiego, testowałeś to u siebie? Jutro puszczę reinstall x102.



+ bash
+ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor
Checking for `rbenv' in PATH: /usr/bin/rbenv
Checking for rbenv shims in PATH: not found
The directory `/root/.rbenv/shims' must be present in PATH for rbenv to work.
Please run `rbenv init' and follow the instructions.

Checking `rbenv install' support: not found
Unless you plan to add Ruby versions manually, you should install ruby-build.
Please refer to https://github.com/rbenv/ruby-build#installation

Counting installed Ruby versions: none
There aren't any Ruby versions installed under `/root/.rbenv/versions'.
You can install Ruby versions like so: rbenv install   2.4.1
Checking RubyGems settings: OK
Auditing installed plugins: OK
+ [[ 1 -ne 0 ]]
+ echo 'Wystąpił błąd podczas instalacji rbenv.'
Wystąpił błąd podczas instalacji rbenv.
+ exit 1```
mikasjp commented 3 years ago

Ok, teraz powinno działać. Przetestowałem w czystym kontenerze Dockerowym

loper commented 3 years ago

Wspaniale :)