Project

General

Profile

Revision 1c1c5a42

Added by Julien Enselme over 10 years ago

Script support git as described #343 to implement #191

View differences:

bin/d7-create-site.sh
9 9
######## Exceptions
10 10
check_arguments $# 1 "$help"
11 11

  
12
if ! work_tree_clean ; then
13
    echo "Your work tree is not clean. Solve this before $0 can continue."
14
    exit 2
15
fi
16

  
12 17
# "-" is forbidden because it provokes database error.
13 18
if [ `echo $1 | grep -` ] ; then
14 19
    echo '"-" is forbidden in the site name'
......
98 103
echo "- Create a node of type \"Site\" on default"
99 104
echo "- Register the webmaster on webmasters@listes.centrale-marseille.fr"
100 105
echo -e "- If line to add to sites.php differs from the line below, please correct it\n\t$site_line_sites_php"
106

  
107
commit "Creation of site: $d7_site_name"

Also available in: Unified diff