Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
provision
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
provision
Commits
418e5f63
Commit
418e5f63
authored
May 13, 2008
by
Adrian Rossouw
Committed by
adrian
May 13, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add configuration for apache restart command
parent
41c9a8e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
platform/provision_drupal.module
platform/provision_drupal.module
+7
-0
web_server/provision_apache.module
web_server/provision_apache.module
+1
-1
No files found.
platform/provision_drupal.module
View file @
418e5f63
...
...
@@ -343,6 +343,13 @@ function provision_drupal_provision_verify($url, &$data) {
}
function
provision_drupal_find_sites
()
{
$sites
=
file_scan_directory
(
'./sites'
,
'site\.php$'
,
array
(
'.'
,
'..'
,
'CVS'
,
'.svn'
),
0
,
TRUE
,
'name'
,
0
);
}
function
provision_drupal_restore
(
$url
,
$backup_file
,
&
$data
)
{
provision_shell_exec
(
"tar -zxf %s -C sites/%s"
,
$backup_file
,
$url
);
# checkout over old sites dir.
}
...
...
web_server/provision_apache.module
View file @
418e5f63
...
...
@@ -89,7 +89,7 @@ function provision_apache_provision_configure($node = null) {
'#title'
=>
t
(
'Apache restart command'
),
'#required'
=>
TRUE
,
'#description'
=>
t
(
'The command to run to restart apache for new changes to take effect. This is required for the new site to become live'
),
'#default_value'
=>
variable_get
(
'provision_restart_cmd'
,
'sudo apachectl graceful'
),
'#default_value'
=>
$node
->
restart_cmd
?
$node
->
restart_cmd
:
variable_get
(
'provision_restart_cmd'
,
'sudo apachectl graceful'
),
'#size'
=>
40
,
'#maxlength'
=>
255
,
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment