Projet

Général

Profil

Paste
Télécharger (1,9 ko) Statistiques
| Branche: | Révision:

root / bin / scripts-config.sh @ 63ffb014

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 scirpts*
7

    
8
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/users/guest/assos/bin
9
PATH=$PATH:/usr/guest/assos/bin
10

    
11
scripts_config='imported'
12

    
13
email_multi_assos="assos@centrale-marseille.fr"
14

    
15
dir_multi_assos='/users/guest/assos'
16
dir_scripts="$dir_multi_assos/bin"
17
dir_template="$dir_multi_assos/template"
18
dir_private="$dir_multi_assos/private"
19

    
20
###### Database
21
db_server="myassos.serv.int"
22
db_user="assos"
23
dir_log="$dir_multi_assos/log"
24

    
25
###### Backup
26
db_full_backup_number=3
27
db_individual_manual_backup_number=2
28
db_individual_auto_backup_number=3
29

    
30
dir_backup="$dir_multi_assos/backup"
31
dir_full_backup="$dir_backup/full"
32
dir_individual_backup="$dir_backup/individual"
33
dir_individual_manual_backup="$dir_individual_backup/manual"
34
dir_individual_auto_backup="$dir_individual_backup/auto"
35

    
36

    
37
###### D7 variables
38
d7_dir="$dir_multi_assos/htmltest"
39
d7_dir_sites="$d7_dir/sites"
40
sites_php="$d7_dir_sites/sites.php"
41

    
42
### Log
43
d7_dir_log="$dir_log/d7"
44

    
45
### Backup
46
d7_dir_full_backup="$dir_full_backup/d7"
47
d7_dir_individual_manual_backup="$dir_individual_manual_backup/d7"
48
d7_dir_individual_auto_backup="$dir_individual_auto_backup/d7"
49

    
50
### Template
51
d7_settings_name="d7-settings.php"
52
d7_settings_local_template_name="d7-settings-local-template.php"
53
d7_settings="$dir_template/$d7_settings_name"
54
d7_settings_local_template="$dir_template/$d7_settings_local_template_name"
55

    
56

    
57
###### D6 variables
58
d6_dir="$dir_multi_assos/html"
59
d6_dir_sites="$d6_dir/sites"
60

    
61
### Backup
62
d6_dir_full_backup="$dir_full_backup/d6"
63
d6_dir_individual_manual_backup="$dir_individual_manual_backup/d6"
64
d6_dir_individual_auto_backup="$dir_individual_auto_backup/d6"