List of commits:
Subject Hash Author Date (UTC)
Store the fist instalation date in 'state' table. e4ba8a9239e72e8de5eed0b3bb1f2a5f2d429105 Catalin(ux) M. BOIE 2011-08-31 16:14:44
Bulk changes. 645d3deb19e399c05a8b14dd88c5151520482b6a Catalin(ux) M. BOIE 2011-08-25 20:39:25
Another bulk update - css related. 3867eb5deadf9827450b40a53efe6c83f518a07b Catalin(ux) M. BOIE 2011-07-26 22:01:13
Bulk update. 9d680f000b7c486be4664e1cb944f424c977c874 Catalin(ux) M. BOIE 2011-07-25 19:06:14
Some ssh and anonymous rights fixes. 9bb20c348a4933056d8f67bd151eb35cf0325835 Catalin(ux) M. BOIE 2011-07-05 22:00:00
Another round of fixes. 45749c46f79f75b29d83ee2d115f987c7765e8c4 Catalin(ux) M. BOIE 2011-07-05 20:01:10
Another round of bulk updates. 6077961d5c443b8a830dc08b3b0ebf37eaf594b3 Catalin(ux) M. BOIE 2011-07-04 22:12:40
Bump version to 0.7. e44064dab5c6f2fa625bb121483a51ec1960cad9 Catalin(ux) M. BOIE 2011-07-03 16:26:47
Lots of changes. 8876190d55995ed98a528edc786e0e9136a0535d Catalin(ux) M. BOIE 2011-07-03 00:03:42
Make %setup quiet as rpmlint told me. b272b9915498fb0a811be2e2687554bbaf887bf1 Catalin(ux) M. BOIE 2011-07-01 03:26:57
Bump version to 0.3 f626f3c66b7b51af2013e16e954e945ba84c12bb Catalin(ux) M. BOIE 2011-07-01 03:25:44
Added logrotate support b827ee7c179d5b72f6ac3ac255edb6de6decb91a Catalin(ux) M. BOIE 2011-07-01 03:25:13
More bulk updates 6dc2b24ebde74bbb64ef2893e2ddb8b7b9456219 Catalin(ux) M. BOIE 2011-07-01 03:16:01
Bulk changes e3771b115feb49698383730893ced1bac5670cac Catalin(ux) M. BOIE 2011-06-29 21:50:03
Ignore Changelog-last file. 32260f93743a577cbaf7cefd335517e4a42edcf0 Catalin(ux) M. BOIE 2011-06-27 21:20:53
Ignore *.out files. 265ba83a2df891cdcc7b35801a46cfc2583983ee Catalin(ux) M. BOIE 2011-06-27 21:20:23
Added shadow-utils as dependency fot user/groupadd. f5816c0bd992881439706041986a3a178eaf69bd Catalin(ux) M. BOIE 2011-06-27 21:08:32
More rpm fixes. 701daf680d15dc69a2a8709f6de5167b55ce02c2 Catalin(ux) M. BOIE 2011-06-27 21:01:24
Add rocketgit user and group. 1b2f9e1e16ed98d5eadd575a87bf0ff738d710c4 Catalin(ux) M. BOIE 2011-06-27 20:59:59
Other bulk stuff. 6cbfef4abe177ad8dad6bdc5ba3fb1d0e2270a9b Catalin(ux) M. BOIE 2011-06-27 19:50:32
Commit e4ba8a9239e72e8de5eed0b3bb1f2a5f2d429105 - Store the fist instalation date in 'state' table.
Author: Catalin(ux) M. BOIE
Author date (UTC): 2011-08-31 16:14
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2011-08-31 16:14
Parent(s): 645d3deb19e399c05a8b14dd88c5151520482b6a
Signing key:
Tree: 68cb0a09c836ef9301f59e509b62786fcdaf8eae
File Lines added Lines deleted
admin/init.php 14 9
File admin/init.php changed (mode: 100644) (index df61bed..d7b5809)
... ... require_once($INC . "/util.inc.php");
10 10 require_once($INC . "/log.inc.php"); require_once($INC . "/log.inc.php");
11 11 require_once($INC . "/sql.inc.php"); require_once($INC . "/sql.inc.php");
12 12 require_once($INC . "/db/struct.inc.php"); require_once($INC . "/db/struct.inc.php");
13 require_once($INC . "/state.inc.php");
13 14
14 15 rg_log_set_file("init.log"); rg_log_set_file("init.log");
15 16
 
... ... if ($r !== TRUE) {
30 31
31 32 // creating admin user // creating admin user
32 33 $uid = 0; $uid = 0;
34 $username = "admin";
35 $email = $rg_admin_email;
33 36 $is_admin = 1; $is_admin = 1;
34 37 $disk_quota_mb = 0; $disk_quota_mb = 0;
35 38 $rights = rg_rights_all("user"); $rights = rg_rights_all("user");
36 $user = "admin";
37 $email = $rg_admin_email;
38 39 $session_time = 3600; $session_time = 3600;
39 40 $confirm_token = ""; $confirm_token = "";
40 41 while (1) { while (1) {
41 $user0 = readline("User [$user]: ");
42 if (!empty($user0))
43 $user = $user0;
42 $username0 = readline("User [$username]: ");
43 if (!empty($username0))
44 $username = $username0;
44 45 $email0 = readline("E-mail [$email]: "); $email0 = readline("E-mail [$email]: ");
45 46 if (!empty($email0)) if (!empty($email0))
46 47 $email = $email0; $email = $email0;
 
... ... while (1) {
54 55 break; break;
55 56 } }
56 57
57 $r = rg_user_info($db, $uid, $user, "" /* email */);
58 $r = rg_user_info($db, $uid, $username, "" /* email */);
58 59 if ($r['ok'] != 1) { if ($r['ok'] != 1) {
59 echo "Error looking up user $user (" . rg_user_error() . ")!\n";
60 echo "Error looking up user $username (" . rg_user_error() . ")!\n";
60 61 exit(1); exit(1);
61 62 } }
62 63 if ($r['exists'] == 1) { if ($r['exists'] == 1) {
63 echo "User $user already exists. Try another one!\n";
64 echo "User $username already exists. Try another one!\n";
64 65 continue; continue;
65 66 } }
66 67
67 $r = rg_user_edit($db, $uid, $user, $email, $pass, $is_admin,
68 $r = rg_user_edit($db, $uid, $username, $email, $pass, $is_admin,
68 69 $disk_quota_mb, $rights, $session_time, $confirm_token); $disk_quota_mb, $rights, $session_time, $confirm_token);
69 70 if ($r !== TRUE) { if ($r !== TRUE) {
70 71 echo "Cannot create user (" . rg_user_error() . ")!\n"; echo "Cannot create user (" . rg_user_error() . ")!\n";
 
... ... while (1) {
73 74 break; break;
74 75 } }
75 76
77
78 // Store the timestamp of the first install
79 rg_state_set($db, "first_install", time());
80
76 81 echo "Done!\n"; echo "Done!\n";
77 82 ?> ?>
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main