... | ... |
@@ -30,15 +30,15 @@ so you will find sutable server easily. |
30 | 30 |
|
31 | 31 |
You donwload gitprep. |
32 | 32 |
|
33 |
-https://github.com/yuki-kimoto/gitprep/archive/0.03.zip |
|
33 |
+https://github.com/yuki-kimoto/gitprep/archive/latest.zip |
|
34 | 34 |
|
35 | 35 |
You expand zip file. You see the following directory. |
36 | 36 |
|
37 |
- gitprep-0.03 |
|
37 |
+ gitprep-latest |
|
38 | 38 |
|
39 |
-Rename this gitprep-0.03 to gitprep. |
|
39 |
+Rename this gitprep-latest to gitprep. |
|
40 | 40 |
|
41 |
- gitprep-0.03 -> gitprep |
|
41 |
+ gitprep-latest -> gitprep |
|
42 | 42 |
|
43 | 43 |
## Configuration |
44 | 44 |
|
... | ... |
@@ -97,9 +97,9 @@ At first create **gitprep** user. This is not nesessary, but recommended. |
97 | 97 |
|
98 | 98 |
Download tar.gz archive and exapand it and change directory. |
99 | 99 |
|
100 |
- curl -kL https://github.com/yuki-kimoto/gitprep/archive/0.03.tar.gz > gitprep-0.03.tar.gz |
|
101 |
- tar xf gitprep-0.03.tar.gz |
|
102 |
- mv gitprep-0.03 gitprep |
|
100 |
+ curl -kL https://github.com/yuki-kimoto/gitprep/archive/latest.tar.gz > gitprep-latest.tar.gz |
|
101 |
+ tar xf gitprep-latest.tar.gz |
|
102 |
+ mv gitprep-latest gitprep |
|
103 | 103 |
cd gitprep |
104 | 104 |
|
105 | 105 |
## Setup |
... | ... |
@@ -75,6 +75,16 @@ sub startup { |
75 | 75 |
); |
76 | 76 |
$self->dbi($dbi); |
77 | 77 |
|
78 |
+ # Change database file permision |
|
79 |
+ if (my $user = $self->config->{hypnotoad}{user}) { |
|
80 |
+ my $uid = (getpwnam $user)[2]; |
|
81 |
+ chown $uid, -1, $db_file; |
|
82 |
+ } |
|
83 |
+ if (my $group = $self->config->{hypnotoad}{group}) { |
|
84 |
+ my $gid = (getgrnam $group)[2]; |
|
85 |
+ chown -1, $gid, $db_file; |
|
86 |
+ } |
|
87 |
+ |
|
78 | 88 |
# Setup database |
79 | 89 |
$self->manager->setup_database; |
80 | 90 |
|