Project

General

Profile

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

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

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 3e9236bd Julien Enselme
if [ -z "${scripts_config}" ] ; then
10 d52a5b2f jenselme
    echo "Import of scripts-config.sh required."
11
    exit 1
12
fi
13
14 a629a580 Benjamin LUCE
if [ -z "${param}" ] ; then
15 d52a5b2f jenselme
    echo "This script needs a site name as argument."
16
    exit 1
17
fi
18
19
scripts_config_site='imported'
20
21 a629a580 Benjamin LUCE
d7_site_name="${param}"
22 3e9236bd Julien Enselme
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"