OSDN Git Service
(root)
/
newslash
/
newslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa70287
)
Web: no maintenance_mode when @ARGV is not defined
author
hylom
<hylom@users.sourceforge.jp>
Fri, 28 Sep 2018 11:27:52 +0000
(20:27 +0900)
committer
hylom
<hylom@users.sourceforge.jp>
Fri, 28 Sep 2018 11:27:52 +0000
(20:27 +0900)
src/newslash_web/lib/Newslash/Web.pm
patch
|
blob
|
history
diff --git
a/src/newslash_web/lib/Newslash/Web.pm
b/src/newslash_web/lib/Newslash/Web.pm
index
d9da483
..
0491f07
100644
(file)
--- a/
src/newslash_web/lib/Newslash/Web.pm
+++ b/
src/newslash_web/lib/Newslash/Web.pm
@@
-102,8
+102,8
@@
sub startup {
# check if 'maintenance' mode
my $maintenance_mode = 0;
- if (
!
$app->subcommand
-
||
any { $app->subcommand eq $_ } qw[configdump configimport databaseinit
+ if ($app->subcommand
+
&&
any { $app->subcommand eq $_ } qw[configdump configimport databaseinit
testdatainsert useradd usermod
]) {
$maintenance_mode = 1;