Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
eb173d8f
Commit
eb173d8f
authored
Dec 14, 2000
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed dupes table detection code; added check for graphs directory.
parent
fb8f115e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
checksetup.pl
checksetup.pl
+14
-7
No files found.
checksetup.pl
View file @
eb173d8f
...
...
@@ -1753,14 +1753,9 @@ if ( CountIndexes('keywords') != 3 ) {
# initially. It's executed if the table is empty; if it's empty because there
# are no dupes (as opposed to having just created the table) it won't have
# any effect anyway, so it doesn't matter.
# This should give us the number of populated rows but seems to return "5"
# all the time <shrug>
$dbh
->
prepare
(
"SELECT * FROM duplicates"
);
$sth
=
$dbh
->
prepare
(
"SELECT count(*) from duplicates"
);
$sth
->
execute
();
if
(
$sth
->
fetchrow_array
()
==
5
)
{
if
(
!
(
$sth
->
fetchrow_arrayref
()
->
[
0
]))
{
# populate table
print
(
"Populating duplicates table...\n"
);
...
...
@@ -1788,6 +1783,18 @@ if ($sth->fetchrow_array() == 5)
$::regenerateshadow
=
1
;
}
# 2000-12-14 New graphing system requires a directory to put the graphs in
# How do we make the new directory owned by the webserver's group? Until
# we find out, make it 0777.
unless
(
-
d
'graphs'
)
{
print
"Creating graphs directory ...\n"
;
mkdir
'graphs'
,
0777
;
# was 0770 in the code (above) I pinched this from
if
(
$::webservergroup
eq
""
)
{
chmod
0777
,
'graphs'
;
}
}
#
# If you had to change the --TABLE-- definition in any way, then add your
# differential change code *** A B O V E *** this comment.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment