$help['title']=t('Write access to a directory to store backups');
$help['summary']=t('The drush user (<a href="http://drupal.org/project/drush">http://drupal.org/project/drush</a>) needs to be able to maintain the backups repository to ensure that your site is backed up successfully.
It is incredibly important that this path is not accessible via the web server, so that no undesirables can get their
hands on your database. The recommended path is directly above your platform path, but it can be anywhere.');
$help['suggestion']=t('Based on your server configuration we have determined that your path should be <code>@backup_path</code>,
but you can change this in the <a href="@provision_link">provisioning section</a>.',$mkdir_cmd);
$help['suggestion']=t('Based on your server configuration we have determined that your path should be <code>@backup_path</code>',$mkdir_cmd);
$help['configuration']=t('Please enter the following commands : <pre>@mkdir_cmd</pre>',$mkdir_cmd);
return$help;
}
function_provision_user_requirements(){
$username=PROVISION_SCRIPT_USER;
$path=PROVISION_DOCROOT_PATH;
$add_cmd=<<<EOF
sudo adduser $username
EOF;
$chmod_cmd=<<<EOF
sudo chown $username $path
EOF;
$help['title']=t('A separate system account for the scripts');
$help['summary']=t('The provision framework requires that the scripts run as a non-root system account, to ensure that
it can correctly set the file permissions on the hosted files. All existing files need to be changed to belong to this
new system account.');
$help['suggestion']=t('Based on your server configuration, we have determined that your user account should be <code>@script_user</code>',array('@script_user'=>PROVISION_SCRIPT_USER));
$help['configuration'][]=t('If your system supports it, run the adduser command (if this command is unavailable, please consult your operating system documentation on how to add new system accounts) : <pre>@cmd</pre>',array('@cmd'=>$add_cmd));
$help['configuration'][]=t('Once you have created the user account, you need to modify the ownership of the files. Use the following command : <pre>@cmd</pre>',array('@cmd'=>$chmod_cmd));
return$help;
}
function_provision_group_requirements(){
$username=PROVISION_SCRIPT_USER;
...
...
@@ -213,7 +233,7 @@ function _provision_group_requirements() {
$vigr_cmd=<<<EOF
[$username@hm2 ~]$ sudo adduser $username $group
sudo adduser $username $group
EOF;
$vigr1=<<<EOF
$group::99:
...
...
@@ -224,20 +244,21 @@ EOF;
$vigr3=<<<EOF
$group::99:anotheruser,$username
EOF;
$help['title']=t('The user account running the script, and the group of the httpd daemon.');
$help['summary']=t('The provision framework takes special care to make sure that the file permissions of the
hosted sites are always as safe as can be, especially to make sure that the web server does
not have the ability to modify the code of the site, therefore this information is required
to assure that safety while keeping the sites accessible. This username needs to be a member
$su=<<<EOF
su -
EOF;
$help['title']=t('The system group of the web server');
$help['summary']=t('For the provision framework to be able to ensure that the file permissions of the
hosted sites are always as safe as can be, and especially to make sure that the web server does
not have the ability to modify the code of the site, the configured system account needs to be a member
of the web server group, in order to be able to correctly set the file permissions.');
$help['suggestion']=t('Based on your server configuration we have determined that you should set the
username to "<code>@username</code>" and the group to "<code>@group</code>",
but you can change these in the <a href="@provision_link">provisioning section</a>.',
@@ -357,18 +382,19 @@ function _provision_basic_server_requirements() {
function_provision_basic_unix_requirements(){
$help['title']=t('A unix based operating system');
$help['summary']=t('The majority of functionality in this system occurs in the back-end, through system level programming. There are several features (such as symlinks), that are not available to users on Windows. There are no plans currently to add windows support.</p>');
$help['summary']=t('The majority of functionality in this system occurs in the back-end, through command line scripting. There are several features (such as symlinks), that are not available to users on Windows. There are no plans currently to add windows support.</p>');