1
|
#!/bin/sh
|
2
|
|
3
|
# This script contains all the variables that are required to execute other scrits
|
4
|
# (database server, backup directories,…). It is design to make other scripts
|
5
|
# indendant of the current configuration and to change it without editing them.
|
6
|
# *These variables must be used in scripts*
|
7
|
|
8
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin
|
9
|
PATH=$PATH:/home/assos/bin
|
10
|
|
11
|
scripts_config='imported'
|
12
|
|
13
|
email_multi_assos="assos@centrale-marseille.fr"
|
14
|
email_multi_assos_update="assos+update@centrale-marseille.fr"
|
15
|
|
16
|
dir_multi_assos='/home/assos'
|
17
|
dir_scripts="$dir_multi_assos/bin"
|
18
|
dir_template="$dir_multi_assos/template"
|
19
|
dir_private="$dir_multi_assos/private"
|
20
|
dir_tmp="$dir_multi_assos/tmp"
|
21
|
|
22
|
###### Aliases
|
23
|
### Bash
|
24
|
. $dir_multi_assos/.aliases
|
25
|
|
26
|
### Drush
|
27
|
dot_drush="$dir_multi_assos/.drush"
|
28
|
aliases_drushrc_php="$dot_drush/aliases.drushrc.php"
|
29
|
|
30
|
###### Database
|
31
|
db_server="myassos.serv.int"
|
32
|
db_user="assos"
|
33
|
dir_log="$dir_multi_assos/log"
|
34
|
|
35
|
###### Backup
|
36
|
db_full_backup_number=3
|
37
|
db_individual_manual_backup_number=2
|
38
|
db_individual_auto_backup_number=3
|
39
|
|
40
|
dir_backup="$dir_multi_assos/backup"
|
41
|
dir_full_backup="$dir_backup/full"
|
42
|
dir_individual_backup="$dir_backup/individual"
|
43
|
dir_individual_manual_backup="$dir_individual_backup/manual"
|
44
|
dir_individual_auto_backup="$dir_individual_backup/auto"
|
45
|
|
46
|
myassos_cnf="$dir_private/myassos.cnf"
|
47
|
|
48
|
###### D7 variables
|
49
|
d7_dir="$dir_multi_assos/drupal7"
|
50
|
d7_dir_sites="$d7_dir/sites"
|
51
|
sites_php="$d7_dir_sites/sites.php"
|
52
|
translations_fr="$d7_dir/profiles/standard/translations/fr.po"
|
53
|
|
54
|
### Log
|
55
|
d7_dir_log="$dir_log/d7"
|
56
|
|
57
|
### Backup
|
58
|
d7_dir_full_backup="$dir_full_backup/d7"
|
59
|
d7_dir_individual_manual_backup="$dir_individual_manual_backup/d7"
|
60
|
d7_dir_individual_auto_backup="$dir_individual_auto_backup/d7"
|
61
|
|
62
|
### Template
|
63
|
d7_settings_name="d7-settings.php"
|
64
|
d7_settings_local_template_name="d7-settings-local-template.php"
|
65
|
d7_settings="$dir_template/$d7_settings_name"
|
66
|
d7_settings_local_template="$dir_template/$d7_settings_local_template_name"
|