forked from Aspen-Discovery/aspen-discovery
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '24.07.00' into 24.08.00
- Loading branch information
Showing
12 changed files
with
157 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Increase process and file limits for aspen user | ||
aspen soft nproc 65000 | ||
aspen soft nofile 65000 | ||
aspen hard nproc 65000 | ||
aspen hard nofile 65000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
require_once __DIR__ . '/../code/web/bootstrap.php'; | ||
require_once __DIR__ . '/../code/web/bootstrap_aspen.php'; | ||
|
||
global $configArray; | ||
|
||
if (count($_SERVER['argv']) > 2) { | ||
$serverName = $_SERVER['argv'][1]; | ||
$operatingSystem = $_SERVER['argv'][2]; | ||
}else{ | ||
echo("Please provide 2 parameters, the first should be the name of the server to update and the second should be the operating system centos/debian\n"); | ||
die(); | ||
} | ||
|
||
require_once ROOT_DIR . '/sys/Indexing/SideLoad.php'; | ||
$sideLoad = new SideLoad(); | ||
$sideLoads = $sideLoad->fetchAll('name', 'marcPath'); | ||
foreach ($sideLoads as $name => $marcPath) { | ||
echo("Updating permissions for $name\n"); | ||
if ($operatingSystem == 'centos') { | ||
exec("chown aspen:aspen_apache $marcPath/.."); | ||
exec("chmod 775 $marcPath/.."); | ||
|
||
exec("chown -R apache:aspen_apache $marcPath"); | ||
exec("chmod 775 $marcPath"); | ||
}else{ | ||
exec("chown aspen:aspen_apache $marcPath/.."); | ||
exec("chmod 775 $marcPath/.."); | ||
|
||
exec("chown -R www-data:aspen_apache $marcPath"); | ||
exec("chmod 775 $marcPath"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters