diff --git a/wp-cli/civicrm.php b/wp-cli/civicrm.php index 1c2176a..b4083d2 100644 --- a/wp-cli/civicrm.php +++ b/wp-cli/civicrm.php @@ -379,7 +379,7 @@ private function install() { $upload_dir = wp_upload_dir(); $settings_dir = $upload_dir['basedir'] . DIRECTORY_SEPARATOR . 'civicrm' . DIRECTORY_SEPARATOR; civicrm_setup( $upload_dir['basedir'] . DIRECTORY_SEPARATOR ); - WP_CLI::launch( "chmod 0777 $settings_dir -R" ); + WP_CLI::launch( "chmod 0755 $settings_dir -R" ); # now we've got some files in place, require PEAR DB and check db setup $dsn = "mysql://{$dbuser}:{$dbpass}@{$dbhost}/{$dbname}?new_link=true"; @@ -654,7 +654,7 @@ private function restore() { $restore_backup_dir .= '/plugins/restore/' . $date; - if ( ! mkdir( $restore_backup_dir, 777, true ) ) { + if ( ! mkdir( $restore_backup_dir, 0755, true ) ) { return WP_CLI::error( 'Failed creating directory: ' . $restore_backup_dir ); } @@ -999,7 +999,7 @@ private function upgrade() { # begin upgrade $backup_dir .= '/plugins/' . $date; - if ( ! mkdir( $backup_dir, 777, true ) ) { + if ( ! mkdir( $backup_dir, 0755, true ) ) { return WP_CLI::error( 'Failed creating directory: ' . $backup_dir ); }