mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-25 00:26:17 +00:00
Set permissions in the ams installer
This commit is contained in:
parent
8aa733ff17
commit
ee292eeb20
1 changed files with 26 additions and 0 deletions
|
@ -4,6 +4,32 @@
|
|||
* This script will install all databases related to the Ryzom AMS and it will generate an admin account..
|
||||
* @author Daan Janssens, mentored by Matthew Lagoe
|
||||
*/
|
||||
|
||||
//set permissions
|
||||
if(chmod('../../../www/login/logs', 0660)) {
|
||||
echo "failed to set permissions on logs";
|
||||
exit;
|
||||
}
|
||||
if(chmod('../../../admin/graphs_output', 0660)) {
|
||||
echo "failed to set permissions on graphs_output";
|
||||
exit;
|
||||
}
|
||||
if(chmod('../../../templates/default_c', 0660)) {
|
||||
echo "failed to set permissions on default_c";
|
||||
exit;
|
||||
}
|
||||
if(chmod('../../www', 0660)) {
|
||||
echo "failed to set permissions on www";
|
||||
exit;
|
||||
}
|
||||
if(chmod('../../www/html/cache', 0660)) {
|
||||
echo "failed to set permissions on cache";
|
||||
exit;
|
||||
}
|
||||
if(chmod('../../www/html/templates_c', 0660)) {
|
||||
echo "failed to set permissions on templates_c";
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!isset($_POST['function'])) {
|
||||
//require the pages that are being needed.
|
||||
|
|
Loading…
Reference in a new issue