A
A
Anton Misyagin2016-04-11 22:40:39
linux
Anton Misyagin, 2016-04-11 22:40:39

How to write sh script with relogin?

Hello guys. Wrote a script that installs the necessary software on my bare ubuntu server. So bad luck after installing one of the packages, you need to either reboot or relogin the user. How to write such a script so that the remaining software is installed after a reboot? This program cannot be moved to the end of the list. it's rvm along with ruby. After this installation, ruby ​​gems should be installed. Is there such a possibility or have I rolled my lip a lot?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Moseychuk, 2016-04-11
@fshp

sudo -u user

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question