ZupIT / ritchie-cli

Ritchie CLI is an open-source tool that allows to create, store and share any kind of automation, executing them through command lines, to run operations or start workflows โš™๏ธ ๐Ÿ–ฅ ๐Ÿ’ก
https://docs.ritchiecli.io
Apache License 2.0
561 stars 104 forks source link

install script fix to run as root without sudo #1021

Closed andrevtg closed 2 years ago

andrevtg commented 2 years ago

Description

Current install script fails when running in a sudo-less environment (even as root)

How to verify it

Just run install script in a plain centos container.

Changelog

Avoid using "sudo" if you are root.

GuillaumeFalourd commented 2 years ago

Hi @andrevtg, thank you for your contribution ๐Ÿ‘๐Ÿผ

We recently thought of a different approach, using this command to run the install script without sudo:

curl -fsSL https://commons-repo.ritchiecli.io/install.sh | sed -e 's/sudo//g' | bash

Could you try it and tell us if it resolve your issue please ? (As we plan to add it to our doc for the next stable version).

andrevtg commented 2 years ago

Nice, thanks!

https://vertigo.com.br/

Andrรฉ Fernandes

โฌฉ CPO

@.***

+55 21 2232-0123 | Ramal: xxxx

+55 21 98191-1299

https://www.linkedin.com/company/vertigo-tecnologia/ https://www.facebook.com/vertigo.tecnologia/ https://www.instagram.com/vertigotecnologia/ https://twitter.com/vertigobr https://www.youtube.com/channel/UCSxb-wl4VBK0a2NTx8vbqHw https://vertigo.gupy.io/

Leia nossos materiais! https://vertigo.com.br/materiais/

Em qua., 25 de ago. de 2021 ร s 11:35, Guillaume Falourd < @.***> escreveu:

Hi @andrevtg https://github.com/andrevtg, thank you for your contribution ๐Ÿ‘๐Ÿผ

We recently thought of a different approach, using this command to run the install script without sudo, using

curl -fsSL https://commons-repo.ritchiecli.io/install.sh | sed -e 's/sudo//g' | bash

Could you try it and tell us if it resolve your issue (we already plan to add it to our doc for the next stable version).

โ€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ZupIT/ritchie-cli/pull/1021#issuecomment-905556215, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACO4WO5LGISAJXR5VUSQ2STT6T5SZANCNFSM5CZBBOXQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

GuillaumeFalourd commented 2 years ago

I'll close the request as you confirmed here that our workaround is resolving this issue for now. Thanks again for contributing! Feel free to ask us anything else ๐Ÿš€