Project

General

Profile

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

root / bin / scripts-config-site.sh @ 65ce03da

1
#!/bin/sh
2

    
3
# Sets useful variables of a site.
4
# ARGS: site_name
5
# Requires scripts-config.sh
6

    
7
# Check if scripts-config.sh is imported.
8
if [ -z $scripts_config ] ; then
9
    echo "Import of scripts-config.sh required."
10
    exit 1
11
fi
12

    
13
if [ -z $1 ] ; then
14
    echo "This script needs a site name as argument."
15
    exit 1
16
fi
17

    
18
scripts_config_site='imported'
19

    
20
d7_site_name=$1
21
d7_site_dir="$d7_dir_sites/assos.centrale-marseille.fr.$d7_site_name"
22
d7_site_settings="$d7_site_dir/settings.php"
23
d7_site_settings_local="$d7_site_dir/settings.local.php"