1 |
d52a5b2f
|
jenselme
|
#!/bin/sh
|
2 |
|
|
|
3 |
5185f38b
|
Julien Enselme
|
# 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 |
87504d03
|
Florent Torregrosa
|
# *These variables must be used in scripts*
|
7 |
5185f38b
|
Julien Enselme
|
|
8 |
53fcb5c3
|
Julien Enselme
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin
|
9 |
3e9236bd
|
Julien Enselme
|
PATH="$PATH":/home/assos/bin
|
10 |
d52a5b2f
|
jenselme
|
|
11 |
|
|
scripts_config='imported'
|
12 |
|
|
|
13 |
4ca1d792
|
Julien Enselme
|
email_multi_assos="assos@centrale-marseille.fr"
|
14 |
|
|
email_multi_assos_update="assos+update@centrale-marseille.fr"
|
15 |
d52a5b2f
|
jenselme
|
|
16 |
06e9d071
|
Assos Assos
|
dir_multi_assos='/home/assos'
|
17 |
3e9236bd
|
Julien Enselme
|
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 |
d52a5b2f
|
jenselme
|
|
22 |
5a702e83
|
Julien Enselme
|
###### Aliases
|
23 |
0e4152d9
|
Julien Enselme
|
### Bash
|
24 |
3e9236bd
|
Julien Enselme
|
. "${dir_multi_assos}/.aliases"
|
25 |
5a702e83
|
Julien Enselme
|
|
26 |
0e4152d9
|
Julien Enselme
|
### Drush
|
27 |
3e9236bd
|
Julien Enselme
|
dot_drush="${dir_multi_assos}/.drush"
|
28 |
|
|
aliases_drushrc_php="${dot_drush}/aliases.drushrc.php"
|
29 |
0e4152d9
|
Julien Enselme
|
|
30 |
d52a5b2f
|
jenselme
|
###### Database
|
31 |
|
|
db_server="myassos.serv.int"
|
32 |
|
|
db_user="assos"
|
33 |
3e9236bd
|
Julien Enselme
|
dir_log="${dir_multi_assos}/log"
|
34 |
d52a5b2f
|
jenselme
|
|
35 |
|
|
###### Backup
|
36 |
|
|
db_full_backup_number=3
|
37 |
|
|
db_individual_manual_backup_number=2
|
38 |
|
|
db_individual_auto_backup_number=3
|
39 |
|
|
|
40 |
3e9236bd
|
Julien Enselme
|
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 |
d52a5b2f
|
jenselme
|
|
46 |
3e9236bd
|
Julien Enselme
|
myassos_cnf="${dir_private}/myassos.cnf"
|
47 |
d52a5b2f
|
jenselme
|
|
48 |
|
|
###### D7 variables
|
49 |
3e9236bd
|
Julien Enselme
|
d7_dir="${dir_multi_assos}/drupal7"
|
50 |
|
|
d7_dir_sites="${d7_dir}/sites"
|
51 |
653aeb8e
|
Julien Enselme
|
d7_dir_all_modules="${d7_dir_sites}/all/modules"
|
52 |
|
|
d7_dir_all_themes="${d7_dir_sites}/all/themes"
|
53 |
3e9236bd
|
Julien Enselme
|
sites_php="${d7_dir_sites}/sites.php"
|
54 |
|
|
translations_fr="${d7_dir}/profiles/standard/translations/fr.po"
|
55 |
d52a5b2f
|
jenselme
|
|
56 |
|
|
### Log
|
57 |
3e9236bd
|
Julien Enselme
|
d7_dir_log="${dir_log}/d7"
|
58 |
d52a5b2f
|
jenselme
|
|
59 |
|
|
### Backup
|
60 |
3e9236bd
|
Julien Enselme
|
d7_dir_full_backup="${dir_full_backup}/d7"
|
61 |
|
|
d7_dir_individual_manual_backup="${dir_individual_manual_backup}/d7"
|
62 |
|
|
d7_dir_individual_auto_backup="${dir_individual_auto_backup}/d7"
|
63 |
d52a5b2f
|
jenselme
|
|
64 |
|
|
### Template
|
65 |
469b9d6d
|
Julien Enselme
|
d7_settings_name="d7-settings.php"
|
66 |
65ce03da
|
Julien Enselme
|
d7_settings_local_template_name="d7-settings-local-template.php"
|
67 |
3e9236bd
|
Julien Enselme
|
d7_settings="${dir_template}/${d7_settings_name}"
|
68 |
|
|
d7_settings_local_template="${dir_template}/${d7_settings_local_template_name}"
|
69 |
bf546089
|
Julien Enselme
|
|
70 |
|
|
### Nginx
|
71 |
73a967a6
|
Julien Enselme
|
d7_nginx_map_content="${dir_multi_assos}/nginx_map" |