Browse code

Allow end users to configure the SSH path.

Xavier G authored on 05/05/2012 20:10:00
Showing 2 changed files

... ...
@@ -4,5 +4,5 @@ description = "Use your TuxFamily repository to store uploaded files."
4 4
 core = 7.x
5 5
 package = Performance and scalability
6 6
 configure = admin/config/media/file-system
7
-version = 7.x-2.0beta
7
+version = 7.x-3.0beta
8 8
 
... ...
@@ -291,11 +291,18 @@ function _tuxfamily_repository_alter_file_system_settings(&$form, &$form_state,
291 291
   );
292 292
   $form['tuxfamily_repository_advanced_options'][TUXFAMILY_REPOSITORY_DRUPAL_PATH_PATTERN_VARIABLE] = array(
293 293
     '#type' => 'textfield',
294
-    '#title' => t('Absolute path to the Drupal-dedicated directory in your TuxFamily repository'),
294
+    '#title' => t('Absolute path to the Drupal-dedicated directory in your TuxFamily repository, as seen on web servers'),
295 295
     '#description' => t('This pattern is used to compose the absolute path to the directory that will store your Drupal files within your TuxFamily repository.'),
296 296
     '#required' => TRUE,
297 297
     '#default_value' => variable_get(TUXFAMILY_REPOSITORY_DRUPAL_PATH_PATTERN_VARIABLE, TUXFAMILY_REPOSITORY_DEFAULT_DRUPAL_PATH_PATTERN),
298 298
   );
299
+  $form['tuxfamily_repository_advanced_options'][TUXFAMILY_REPOSITORY_SSH_PATH_PATTERN_VARIABLE] = array(
300
+    '#type' => 'textfield',
301
+    '#title' => t('Absolute path to the Drupal-dedicated directory in your TuxFamily repository, as seen through SSH'),
302
+    '#description' => t('Path to the same directory as seen through SSH (useful for cron jobs).'),
303
+    '#required' => TRUE,
304
+    '#default_value' => variable_get(TUXFAMILY_REPOSITORY_SSH_PATH_PATTERN_VARIABLE, TUXFAMILY_REPOSITORY_DEFAULT_SSH_PATH_PATTERN),
305
+  );
299 306
   $form['tuxfamily_repository_advanced_options'][TUXFAMILY_REPOSITORY_RSYNC_PATH_VARIABLE] = array(
300 307
     '#type' => 'textfield',
301 308
     '#title' => t('Rsync command'),