Project

General

Profile

Paste
Download (616 Bytes) Statistics
| Branch: | Revision:

root / bin / scripts-config-site.sh @ df87f34a

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 "$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
d7_site_settings="${d7_site_dir}/settings.php"
24
d7_site_settings_local="${d7_site_dir}/settings.local.php"