Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
moodle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cloud
charms
moodle
Commits
48093813
Commit
48093813
authored
7 years ago
by
Paolino Paperino
Browse files
Options
Downloads
Patches
Plain Diff
2018-02-15: FG;
parent
dcadf6d8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hooks/install
+16
-14
16 additions, 14 deletions
hooks/install
with
16 additions
and
14 deletions
hooks/install
+
16
−
14
View file @
48093813
...
@@ -151,20 +151,22 @@ if [ "$HTTPS" == "True" ]; then
...
@@ -151,20 +151,22 @@ if [ "$HTTPS" == "True" ]; then
fi
fi
#Configure Apache2 MPM. Note that only one in [event, worker, prefork] should be active.
#Configure Apache2 MPM. Note that only one in [event, worker, prefork] should be active.
for
atype
in
mpm_prefork mpm_event mpm_worker
;
do
if
[
!
-z
"
$MPM_TYPE
"
]
;
then
if
[
"
$atype
"
==
"
$MPM_TYPE
"
]
;
then
for
atype
in
mpm_prefork mpm_event mpm_worker
;
do
a2enmod
$MPM_TYPE
if
[
"
$atype
"
==
"
$MPM_TYPE
"
]
;
then
set
-f
a2enmod
$atype
mpmCfgArray
=(
${
MPM_CONFIG
//,/
}
)
set
-f
for
elemArray
in
"
${
!mpmCfgArray[@]
}
"
;
do
mpmCfgArray
=(
${
MPM_CONFIG
//,/
}
)
elemKey
=
$(
echo
$elemArray
|
cut
-f1
-d
=
)
for
elemArray
in
"
${
!mpmCfgArray[@]
}
"
;
do
elemVal
=
$(
echo
$elemArray
|
cut
-f2
-d
=
)
elemKey
=
$(
echo
$elemArray
|
cut
-f1
-d
=
)
sed
-i
"s|^
\s
+
$elemKey
.*|
$elemKey
$elemVal
|g"
/etc/apache2/mods-available/
${
MPM_TYPE
}
.conf
elemVal
=
$(
echo
$elemArray
|
cut
-f2
-d
=
)
done
sed
-i
"s|^
\s
+
$elemKey
.*|
$elemKey
$elemVal
|g"
/etc/apache2/mods-available/
${
MPM_TYPE
}
.conf
else
done
a2dismod
$MPM_TYPE
else
fi
a2dismod
$atype
done
fi
done
fi
#Set upload_max_filesize in php.ini
#Set upload_max_filesize in php.ini
STR_OLD
=
`
cat
/etc/php/7.0/apache2/php.ini |
grep
upload_max_filesize
`
STR_OLD
=
`
cat
/etc/php/7.0/apache2/php.ini |
grep
upload_max_filesize
`
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment