Projet

Général

Profil

Paste
Télécharger (600 octets) Statistiques
| Branche: | Révision:

root / bin / scripts-config-site.sh @ 94065d4e

1 d52a5b2f jenselme
#!/bin/sh
2
3
# Sets useful variables of a site.
4
# ARGS: site_name
5
# Requires scripts-config.sh
6 5185f38b Julien Enselme
# check_argumements is not used to avoid multiple imports
7 d52a5b2f jenselme
8
# Check if scripts-config.sh is imported.
9
if [ -z $scripts_config ] ; then
10
    echo "Import of scripts-config.sh required."
11
    exit 1
12
fi
13
14
if [ -z $1 ] ; then
15
    echo "This script needs a site name as argument."
16
    exit 1
17
fi
18
19
scripts_config_site='imported'
20
21
d7_site_name=$1
22
d7_site_dir="$d7_dir_sites/assos.centrale-marseille.fr.$d7_site_name"
23 469b9d6d Julien Enselme
d7_site_settings="$d7_site_dir/settings.php"
24
d7_site_settings_local="$d7_site_dir/settings.local.php"