How to take gitorious snapshot normal user

74 views
Skip to first unread message

Dhanasekaran Anbalagan

unread,
Oct 15, 2013, 11:30:31 AM10/15/13
to gito...@googlegroups.com
Hi Guys,

I want to take snapshot with normal system user.

I got error in taking snapshot with normal system user. please guide me How to fix this.

/var/www/gitorious/app/bin/setup.rb:50:in `require_valid_user!': You need to be root to do this! (RuntimeError)
from /var/www/gitorious/app/bin/setup.rb:14:in `run_with_gitorious_environment'
from ./bin/snapshot:28

Marcin Kulik

unread,
Nov 5, 2013, 6:21:25 AM11/5/13
to gito...@googlegroups.com

The best way to run the command from gitoriou's bin directory is to switch first to the user that is set in config/gitorious.yml file (line at the top like "user: git"). This way the setup.rb script won't need to run sudo/su and you won't need any root privileges to run the commands.

Dhanasekaran Anbalagan

unread,
Nov 8, 2013, 6:41:55 AM11/8/13
to gito...@googlegroups.com
Thanks Marcin..

Did I learn something today? If not, I wasted it.



--
--
To post to this group, send email to gito...@googlegroups.com
To unsubscribe from this group, send email to
gitorious+...@googlegroups.com

---
You received this message because you are subscribed to a topic in the Google Groups "Gitorious" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gitorious/oJV2lY5L_ys/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gitorious+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages