mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-11 09:49:05 +00:00
dont chmod just check permissions
This commit is contained in:
parent
ee9526c5c6
commit
70c7708493
1 changed files with 12 additions and 12 deletions
|
@ -6,28 +6,28 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//set permissions
|
//set permissions
|
||||||
if(chmod('../../../www/login/logs', 0660)) {
|
if(writable('../../../www/login/logs')) {
|
||||||
echo "failed to set permissions on logs";
|
echo "failed to get write permissions on logs";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
if(chmod('../../../admin/graphs_output', 0660)) {
|
if(writable('../../../admin/graphs_output')) {
|
||||||
echo "failed to set permissions on graphs_output";
|
echo "failed to get write permissions on graphs_output";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
if(chmod('../../../templates/default_c', 0660)) {
|
if(writable('../../../templates/default_c')) {
|
||||||
echo "failed to set permissions on default_c";
|
echo "failed to get write permissions on default_c";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
if(chmod('../../www', 0660)) {
|
if(writable('../../www')) {
|
||||||
echo "failed to set permissions on www";
|
echo "failed to get write permissions on www";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
if(chmod('../../www/html/cache', 0660)) {
|
if(writable('../../www/html/cache')) {
|
||||||
echo "failed to set permissions on cache";
|
echo "failed to get write permissions on cache";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
if(chmod('../../www/html/templates_c', 0660)) {
|
if(writable('../../www/html/templates_c')) {
|
||||||
echo "failed to set permissions on templates_c";
|
echo "failed to get write permissions on templates_c";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue