diff --git a/pagure/hooks/fedmsg.py b/pagure/hooks/fedmsg.py index 0d38652..d3ea77d 100644 --- a/pagure/hooks/fedmsg.py +++ b/pagure/hooks/fedmsg.py @@ -91,9 +91,6 @@ class Fedmsg(BaseHook): os.path.join(hook_files, 'fedmsg_hook.py'), os.path.join(repopath, 'hooks', 'post-receive.fedmsg') ) - os.chmod( - os.path.join(repopath, 'hooks', 'post-receive.fedmsg'), - 0755) @classmethod def remove(cls, project): diff --git a/pagure/hooks/irc.py b/pagure/hooks/irc.py index a67001d..cc314a2 100644 --- a/pagure/hooks/irc.py +++ b/pagure/hooks/irc.py @@ -122,11 +122,10 @@ class Hook(BaseHook): # repo_obj.config.set_multivar() # Install the hook itself - #shutil.copyfile( + #os.symlink( #os.path.join(hook_files, 'git_irc.py'), #os.path.join(repopath, 'hooks', 'post-receive.irc') #) - #os.chmod(os.path.join(repopath, 'hooks', 'post-receive.irc'), 0755) @classmethod def remove(cls, project): diff --git a/pagure/hooks/mail.py b/pagure/hooks/mail.py index c496f81..f463f02 100644 --- a/pagure/hooks/mail.py +++ b/pagure/hooks/mail.py @@ -99,9 +99,6 @@ class Mail(BaseHook): os.path.join(hook_files, 'git_multimail.py'), os.path.join(repopath, 'hooks', 'post-receive.mail') ) - os.chmod( - os.path.join(repopath, 'hooks', 'post-receive.mail'), - 0755) @classmethod def remove(cls, project): diff --git a/pagure/hooks/pagure_hook.py b/pagure/hooks/pagure_hook.py index 9ecac74..4c430e4 100644 --- a/pagure/hooks/pagure_hook.py +++ b/pagure/hooks/pagure_hook.py @@ -95,7 +95,6 @@ class PagureHook(BaseHook): hook_path = os.path.join( repopath, 'hooks', 'post-receive.pagure') os.symlink(hook_file, hook_path) - os.chmod(hook_path, 0755) @classmethod def remove(cls, project): diff --git a/pagure/hooks/pagure_request_hook.py b/pagure/hooks/pagure_request_hook.py index acb2aa8..1bc00c9 100644 --- a/pagure/hooks/pagure_request_hook.py +++ b/pagure/hooks/pagure_request_hook.py @@ -91,7 +91,6 @@ class PagureRequestHook(BaseHook): os.symlink( os.path.join(hook_files, 'post-receive'), postreceive) - os.chmod(postreceive, 0755) @classmethod def install(cls, project, dbobj): @@ -114,11 +113,10 @@ class PagureRequestHook(BaseHook): # Install the hook itself hook_path = os.path.join( repopath, 'hooks', 'post-receive.pagure-requests') - shutil.copyfile( + os.symlink( os.path.join(hook_files, 'pagure_hook_requests.py'), hook_path ) - os.chmod(hook_path, 0755) @classmethod def remove(cls, project): diff --git a/pagure/hooks/pagure_ticket_hook.py b/pagure/hooks/pagure_ticket_hook.py index 29b861a..26c71b0 100644 --- a/pagure/hooks/pagure_ticket_hook.py +++ b/pagure/hooks/pagure_ticket_hook.py @@ -90,7 +90,6 @@ class PagureTicketHook(BaseHook): os.symlink( os.path.join(hook_files, 'post-receive'), postreceive) - os.chmod(postreceive, 0755) @classmethod def install(cls, project, dbobj):