RV Products Forums: Enable SVN hooks - RV Products Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Enable SVN hooks

#1 User is offline   challgren 

  • Member
  • PipPip
  • Group: Members
  • Posts: 15
  • Joined: 30-March 09

Posted 30 March 2009 - 03:19 PM

I figured out how to enable SVN hooks so that you can use your hook scripts in the back end.

ENABLING THIS WILL ALLOW REGULAR USERS TO ACCESS SYSTEM FILES

First login to SSH to your server.

Create a backup of httpd.conf and all associated files.

cd /usr/local/cpanel/3rdparty/lib/php/rvlibs/rvsubversion-patch/subversion-1.4.5/subversion/libsvn_repos

Now modify hooks.c

CODE

/* START:: RVSkin */
return svn_error_createf(SVN_ERR_EXTERNAL_PROGRAM, NULL,
"Subversion Server for cPanel isnot allow %s hook", name);
/* END:: RVSkin */


I believe there are 2 lines of the above code but I'm unsure as I started this mod before I did the documentation.

chattr +i hooks.c (This prevents rvskins from updating our modified hooks.c file)

Now cd /root/rvadmin

Now run perl installsubversion.pl

It will take a couple minutes to recompile SVN but once its done you have enabled hooks in your RVskin Trac/SVN
0

#2 User is offline   pairote 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 4,345
  • Joined: 13-June 03

Posted 02 April 2009 - 12:01 PM

Thank you very much for the patch. According to our conversation on the support ticket, we will add manager to enable/disable hook script on the accout basis.
0

#3 User is offline   M4d3L 

  • Member
  • PipPip
  • Group: Members
  • Posts: 18
  • Joined: 10-February 09

Posted 04 April 2009 - 04:31 AM

QUOTE(pairote @ Apr 2 2009, 12:01 AM) <{POST_SNAPBACK}>
Thank you very much for the patch. According to our conversation on the support ticket, we will add manager to enable/disable hook script on the accout basis.


Good news!!! Very good news! biggrin.gif any date for the release of this feature ? smile.gif
0

#4 User is offline   M4d3L 

  • Member
  • PipPip
  • Group: Members
  • Posts: 18
  • Joined: 10-February 09

Posted 04 April 2009 - 11:42 PM

I have try to follow your howto to apply this on my server but what we must modify. we must comment these line?

thank.
0

#5 User is offline   M4d3L 

  • Member
  • PipPip
  • Group: Members
  • Posts: 18
  • Joined: 10-February 09

Posted 22 May 2009 - 02:48 AM


any news for this feature?
0

#6 User is offline   pairote 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 4,345
  • Joined: 13-June 03

Posted 30 November 2009 - 06:05 PM

Hook script manager is available on v9.50+.

For security reason on shared server, hook scripts (http://subversion.tigris.org/tools_contrib.html#hook_scripts) are disabled by default. It will not execute any hook scripts on the end-user repositories. But admin can enable it manually on account basis on root WHM >> RVSkin Manager >> Integration >> Subversion and Trac.

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked