Projet

Général

Profil

Paste
Télécharger (2,15 ko) Statistiques
| Branche: | Révision:

root / bin / scripts-config.sh @ 7c856df4

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
d7_dir_all_modules="${d7_dir_sites}/all/modules"
52
d7_dir_all_themes="${d7_dir_sites}/all/themes"
53
sites_php="${d7_dir_sites}/sites.php"
54
translations_fr="${d7_dir}/profiles/standard/translations/fr.po"
55

    
56
### Log
57
d7_dir_log="${dir_log}/d7"
58

    
59
### Backup
60
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

    
64
### Template
65
d7_settings_name="d7-settings.php"
66
d7_settings_local_template_name="d7-settings-local-template.php"
67
d7_settings="${dir_template}/${d7_settings_name}"
68
d7_settings_local_template="${dir_template}/${d7_settings_local_template_name}"
69

    
70
### Nginx
71
d7_nginx_map_content="${dir_multi_assos}/nginx_map"