Skip to content

Commit 6e2d48d

Browse files
committed
1 parent 491e359 commit 6e2d48d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

install/dist/lib/gentoo.lib.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,11 @@ public function configure_apps_vhost()
627627
$command = 'adduser '.$conf['nginx']['user'].' '.$apps_vhost_group;
628628
caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
629629

630-
if(!@is_dir($install_dir)) mkdir($install_dir, 0755, true);
630+
if(!@is_dir($install_dir)){
631+
mkdir($install_dir, 0755, true);
632+
} else {
633+
chmod($install_dir, 0755);
634+
}
631635
chown($install_dir, $apps_vhost_user);
632636
chgrp($install_dir, $apps_vhost_group);
633637

install/lib/installer_base.lib.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,11 @@ public function configure_apps_vhost() {
14591459
$command = 'adduser '.$conf['nginx']['user'].' '.$apps_vhost_group;
14601460
caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
14611461

1462-
if(!@is_dir($install_dir)) mkdir($install_dir, 0755, true);
1462+
if(!@is_dir($install_dir)){
1463+
mkdir($install_dir, 0755, true);
1464+
} else {
1465+
chmod($install_dir, 0755);
1466+
}
14631467
chown($install_dir, $apps_vhost_user);
14641468
chgrp($install_dir, $apps_vhost_group);
14651469

0 commit comments

Comments
 (0)