Project

General

Profile

Paste
Download (1.96 KB) Statistics
| Branch: | Revision:

root / bin / scripts-config.sh @ 5a702e83

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
###### Aliases
21
. $dir_multi_assos/.aliases
22
shopt -s expand_aliases
23

    
24
###### Database
25
db_server="myassos.serv.int"
26
db_user="assos"
27
dir_log="$dir_multi_assos/log"
28

    
29
###### Backup
30
db_full_backup_number=3
31
db_individual_manual_backup_number=2
32
db_individual_auto_backup_number=3
33

    
34
dir_backup="$dir_multi_assos/backup"
35
dir_full_backup="$dir_backup/full"
36
dir_individual_backup="$dir_backup/individual"
37
dir_individual_manual_backup="$dir_individual_backup/manual"
38
dir_individual_auto_backup="$dir_individual_backup/auto"
39

    
40

    
41
###### D7 variables
42
d7_dir="$dir_multi_assos/htmltest"
43
d7_dir_sites="$d7_dir/sites"
44
sites_php="$d7_dir_sites/sites.php"
45

    
46
### Log
47
d7_dir_log="$dir_log/d7"
48

    
49
### Backup
50
d7_dir_full_backup="$dir_full_backup/d7"
51
d7_dir_individual_manual_backup="$dir_individual_manual_backup/d7"
52
d7_dir_individual_auto_backup="$dir_individual_auto_backup/d7"
53

    
54
### Template
55
d7_settings_name="d7-settings.php"
56
d7_settings_local_template_name="d7-settings-local-template.php"
57
d7_settings="$dir_template/$d7_settings_name"
58
d7_settings_local_template="$dir_template/$d7_settings_local_template_name"
59

    
60

    
61
###### D6 variables
62
d6_dir="$dir_multi_assos/html"
63
d6_dir_sites="$d6_dir/sites"
64

    
65
### Backup
66
d6_dir_full_backup="$dir_full_backup/d6"
67
d6_dir_individual_manual_backup="$dir_individual_manual_backup/d6"
68
d6_dir_individual_auto_backup="$dir_individual_auto_backup/d6"