Projet

Général

Profil

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

root / bin / scripts-config.sh @ cf6a035a

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 d52a5b2f jenselme
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 4ca1d792 Julien Enselme
email_multi_assos="assos@centrale-marseille.fr"
14
email_multi_assos_update="assos+update@centrale-marseille.fr"
15 d52a5b2f jenselme
16
dir_multi_assos='/users/guest/assos'
17
dir_scripts="$dir_multi_assos/bin"
18
dir_template="$dir_multi_assos/template"
19 5163fcf2 Julien Enselme
dir_private="$dir_multi_assos/private"
20 364f9fdd Julien Enselme
dir_tmp="$dir_multi_assos/tmp"
21 d52a5b2f jenselme
22 5a702e83 Julien Enselme
###### Aliases
23 0e4152d9 Julien Enselme
### Bash
24 5a702e83 Julien Enselme
. $dir_multi_assos/.aliases
25
26 0e4152d9 Julien Enselme
### Drush
27
dot_drush="$dir_multi_assos/.drush"
28
aliases_drushrc_php="$dot_drush/aliases.drushrc.php"
29
30 d52a5b2f jenselme
###### 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 88c2fb40 Julien Enselme
myassos_cnf="$dir_private/myassos.cnf"
47 d52a5b2f jenselme
48
###### D7 variables
49
d7_dir="$dir_multi_assos/htmltest"
50
d7_dir_sites="$d7_dir/sites"
51 593e9a63 Julien Enselme
sites_php="$d7_dir_sites/sites.php"
52 d52a5b2f jenselme
53
### Log
54
d7_dir_log="$dir_log/d7"
55
56
### Backup
57
d7_dir_full_backup="$dir_full_backup/d7"
58
d7_dir_individual_manual_backup="$dir_individual_manual_backup/d7"
59
d7_dir_individual_auto_backup="$dir_individual_auto_backup/d7"
60
61
### Template
62 469b9d6d Julien Enselme
d7_settings_name="d7-settings.php"
63 65ce03da Julien Enselme
d7_settings_local_template_name="d7-settings-local-template.php"
64 469b9d6d Julien Enselme
d7_settings="$dir_template/$d7_settings_name"
65 dfee8e36 Julien Enselme
d7_settings_local_template="$dir_template/$d7_settings_local_template_name"