Benjamin Renard commited on 2013-08-21 16:19:26
Showing 1 changed files, with 6 additions and 0 deletions.
... | ... |
@@ -151,6 +151,12 @@ class AddRepoPlugin extends VGPlugin |
151 | 151 |
$this -> add_display_message("Error setting repository's description : ".$e->getMessage()); |
152 | 152 |
return; |
153 | 153 |
} |
154 |
+ |
|
155 |
+ $cmd = "chmod g+rw -R $path"; |
|
156 |
+ exec($cmd,$out,$ret); |
|
157 |
+ if ($ret !== 0) { |
|
158 |
+ $this -> add_display_message("Error fixing repository permission. You may not be able to push in this repository."); |
|
159 |
+ } |
|
154 | 160 |
return True; |
155 | 161 |
} |
156 | 162 |
|
157 | 163 |