Projet

Général

Profil

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

root / bin / scripts-config-site.sh @ 6c6343d9

1
#!/bin/sh
2

    
3
# Sets useful variables of a site.
4
# ARGS: site_name
5
# Requires scripts-config.sh
6
# check_argumements is not used to avoid multiple imports
7

    
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 "${param}" ] ; 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="${param}"
22
d7_site_dir="${d7_dir_sites}/assos.centrale-marseille.fr.${d7_site_name}"
23
d7_site_settings="${d7_site_dir}/settings.php"
24
d7_site_settings_local="${d7_site_dir}/settings.local.php"