17 if ( is_dir( $dir ) ) {
18 if ( !is_readable( $dir ) ) {
19 return Status::newFatal(
'config-sqlite-dir-unwritable', $dir );
21 } elseif ( !is_writable( dirname( $dir ) ) ) {
23 $webserverGroup = $this->maybeGetWebserverPrimaryGroup();
24 if ( $webserverGroup !==
null ) {
25 return Status::newFatal(
26 'config-sqlite-parent-unwritable-group',
27 $dir, dirname( $dir ), basename( $dir ),
32 return Status::newFatal(
33 'config-sqlite-parent-unwritable-nogroup',
34 $dir, dirname( $dir ), basename( $dir )
37 return Status::newGood();