File | Lines added | Lines deleted |
---|---|---|
TODO | 1 | 0 |
admin/init.php | 1 | 1 |
duilder.conf | 1 | 1 |
inc/log.inc.php | 1 | 2 |
inc/user.inc.php | 1 | 1 |
rocketgit.spec.in | 3 | 1 |
File TODO changed (mode: 100644) (index 56ab1fb..da9ec60) | |||
57 | 57 | [ ] Smart HTTP transport | [ ] Smart HTTP transport |
58 | 58 | [ ] Move forget pass token into users table. | [ ] Move forget pass token into users table. |
59 | 59 | [ ] Audit all error messages to not propage usefull info to an attacker. | [ ] Audit all error messages to not propage usefull info to an attacker. |
60 | [ ] git-daemon connection - cannot get IP info? setenv? | ||
60 | 61 | [ ] | [ ] |
61 | 62 | ||
62 | 63 | == Versus == | == Versus == |
File admin/init.php changed (mode: 100644) (index 615101d..03fc8c0) | |||
... | ... | $is_admin = 1; | |
31 | 31 | $disk_quota_mb = 0; | $disk_quota_mb = 0; |
32 | 32 | $rights = rg_rights_all("user"); | $rights = rg_rights_all("user"); |
33 | 33 | $user = "admin"; | $user = "admin"; |
34 | $email = ""; | ||
34 | $email = $rg_admin_email; | ||
35 | 35 | $session_time = 3600; | $session_time = 3600; |
36 | 36 | $confirm_token = ""; | $confirm_token = ""; |
37 | 37 | while (1) { | while (1) { |
File duilder.conf changed (mode: 100644) (index 36bc1ff..f3ac577) | |||
1 | 1 | PRJ="rocketgit" | PRJ="rocketgit" |
2 | VER="0.8" | ||
2 | VER="0.9" | ||
3 | 3 | REV="1" | REV="1" |
4 | 4 | EXCLUDE=".exclude" | EXCLUDE=".exclude" |
5 | 5 | EXPORT_PATH="/data/www/umbrella/kernel/us/rocketgit" | EXPORT_PATH="/data/www/umbrella/kernel/us/rocketgit" |
File inc/log.inc.php changed (mode: 100644) (index b8bdd47..6acb1f6) | |||
... | ... | function rg_log($str) | |
19 | 19 | global $rg_log_sid; | global $rg_log_sid; |
20 | 20 | ||
21 | 21 | if ($rg_log_fd === FALSE) { | if ($rg_log_fd === FALSE) { |
22 | $rg_log_fd = @fopen($rg_log_file, "a+"); | ||
22 | $rg_log_fd = @fopen($rg_log_file, "a"); | ||
23 | 23 | if ($rg_log_fd === FALSE) | if ($rg_log_fd === FALSE) |
24 | 24 | return; | return; |
25 | @chmod($rg_log_file, 0600); | ||
26 | 25 | // write an empty line | // write an empty line |
27 | 26 | fwrite($rg_log_fd, "\n"); | fwrite($rg_log_fd, "\n"); |
28 | 27 | } | } |
File inc/user.inc.php changed (mode: 100644) (index 1697b42..b3e7bf7) | |||
... | ... | function rg_user_login_by_user_pass($db, $user, $pass, &$rg_ui) | |
329 | 329 | return FALSE; | return FALSE; |
330 | 330 | } | } |
331 | 331 | ||
332 | rg_user_sess($db, $rg_ui['uid'], $rg_ui['session_time']); | ||
332 | rg_user_auto_login($db, $rg_ui['uid'], $rg_ui); | ||
333 | 333 | ||
334 | 334 | rg_user_set_last_seen($db, $rg_ui['uid']); | rg_user_set_last_seen($db, $rg_ui['uid']); |
335 | 335 |
File rocketgit.spec.in changed (mode: 100644) (index b679ef4..df7e6d9) | |||
... | ... | Source: http://kernel.embedromix.ro/us/rocketgit/%{name}-%{version}.tar.gz | |
8 | 8 | URL: http://kernel.embedromix.ro/us/ | URL: http://kernel.embedromix.ro/us/ |
9 | 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot | BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
10 | 10 | BuildArch: noarch | BuildArch: noarch |
11 | Requires: httpd, php, php-process, php-cli, php-pgsql, xinetd, shadow-utils, git, postgresql-server | ||
11 | Requires: httpd, php, php-process, php-cli, php-pgsql, xinetd | ||
12 | Requires: shadow-utils, git, postgresql-server, policycoreutils-python | ||
12 | 13 | ||
13 | 14 | ||
14 | 15 | %description | %description |
... | ... | Light and fast Git hosting solution, similar with Gitorious/GitHub/etc. | |
17 | 18 | %pre | %pre |
18 | 19 | getent group rocketgit || groupadd -r rocketgit | getent group rocketgit || groupadd -r rocketgit |
19 | 20 | getent passwd rocketgit || useradd -r -g rocketgit -s /sbin/nologin -m -d /home/rocketgit -c "RocketGit user" rocketgit | getent passwd rocketgit || useradd -r -g rocketgit -s /sbin/nologin -m -d /home/rocketgit -c "RocketGit user" rocketgit |
21 | semanage fcontext -a -t httpd_log_t "/var/log/rocketgit-web(/.*)?" || : | ||
20 | 22 | ||
21 | 23 | %post | %post |
22 | 24 | if [ $1 -ne 0 ]; then | if [ $1 -ne 0 ]; then |