Skip to content

Commit fed6285

Browse files
author
Thom Pol
committed
Create backup folder when site is created (#6277)
1 parent 9954d8f commit fed6285

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,7 @@ function update($event_name, $data) {
724724
if(!is_dir($data['new']['document_root'].'/cgi-bin')) $app->system->mkdirpath($data['new']['document_root'].'/cgi-bin');
725725
if(!is_dir($data['new']['document_root'].'/tmp')) $app->system->mkdirpath($data['new']['document_root'].'/tmp', 0770);
726726
if(!is_dir($data['new']['document_root'].'/webdav')) $app->system->mkdirpath($data['new']['document_root'].'/webdav');
727+
if(!is_dir($data['new']['document_root'].'/backup')) $app->system->mkdirpath($data['new']['document_root'].'/backup');
727728

728729
if(!is_dir($data['new']['document_root'].'/.ssh')) {
729730
$app->system->mkdirpath($data['new']['document_root'].'/.ssh');

server/plugins-available/nginx_plugin.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ function update($event_name, $data) {
567567
if(!is_dir($data['new']['document_root'].'/ssl')) $app->system->mkdirpath($data['new']['document_root'].'/ssl');
568568
if(!is_dir($data['new']['document_root'].'/cgi-bin')) $app->system->mkdirpath($data['new']['document_root'].'/cgi-bin');
569569
if(!is_dir($data['new']['document_root'].'/tmp')) $app->system->mkdirpath($data['new']['document_root'].'/tmp');
570+
if(!is_dir($data['new']['document_root'].'/backup')) $app->system->mkdirpath($data['new']['document_root'].'/backup');
570571

571572
if(!is_dir($data['new']['document_root'].'/.ssh')) {
572573
$app->system->mkdirpath($data['new']['document_root'].'/.ssh');

0 commit comments

Comments
 (0)