Projet

Général

Profil

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

root / larpe / tags / release-1.1.1 / tests / gen_config.sh @ d03cb81c

1
#!/bin/sh
2

    
3
if [ $# -eq 0 ];
4
then
5
    echo "Usage : $0 site_name"
6
    exit 1
7
fi
8

    
9
while [ $# -ne 0 ];
10
do
11
    if [ -d $1 ];
12
    then
13
        config_file="$1/config"
14
        echo -n "Generating config template for $1 ... "
15
        echo "setlocal sp_login_url " >> $config_file
16
        echo "setlocal sp_logout_url " >> $config_file
17
        echo "setlocal defederation_url " >> $config_file
18
        echo "setlocal idp_username " >> $config_file
19
        echo "setlocal idp_password " >> $config_file
20
        echo "setlocal sp_username " >> $config_file
21
        echo "setlocal sp_password " >> $config_file
22
        echo "setlocal find_username " >> $config_file
23
        echo "[OK]"
24
    fi
25
    shift
26
done
(4-4/7)