Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 613 → Rev 612

/alcasar.sh
203,7 → 203,7
else echo -n "Enter the name of your organism : "
fi
read ORGANISME
if [ "$ORGANISME" == "" ]
if [ "$ORGANISME" = "" ]
then
ORGANISME=!
fi
499,30 → 499,29
header_install
if [ "$mode" = "install" ]
then
admin_portal=!
PTN='^[a-zA-Z0-9-]*$'
until [[ $(expr $admin_portal : $PTN) -gt 0 ]]
do
header_install
if [ $Lang == "fr" ]
then
echo ""
echo "Définissez un premier compte d'administration du portail :"
echo
echo -n "Nom : "
else
echo ""
echo "Define the first account allow to administrate the portal :"
echo
echo -n "Account : "
fi
read admin_portal
if [ "$admin_portal" == "" ]
then
admin_portal=!
fi
done
echo "- Name of the first account of the admin profile : $admin_portal" >> $FIC_PARAM
header_install
if [ $Lang == "fr" ]
then
echo "Pour administrer Alcasar via le centre de gestion WEB, trois profils de comptes ont été définis :"
echo " - le profil 'admin' capable de réaliser toutes les opérations"
echo " - le profil 'backup' lié uniquement aux fonctions d'archivage"
echo " - le profil 'manager' lié uniquement aux fonctions de gestion des usagers"
echo ""
echo "Définissez le premier compte du profil 'admin' :"
echo
echo -n "Nom : "
else
echo "To manage Alcasar thru the WEB control center, three accounts profiles were defined :"
echo " - the 'admin profile who can do all operations"
echo " - the 'backup' profile link to backup functions"
echo " - the 'manager' profile link to users management"
echo ""
echo "Define the first account of the 'admin' profile :"
echo
echo -n "Account : "
fi
read admin_portail
echo "- Name of the first account of the admin profile : $admin_portail" >> $FIC_PARAM
# Création du fichier de clés de ce compte dans le profil "admin"
[ -d $DIR_DEST_ETC/digest ] && rm -rf $DIR_DEST_ETC/digest
mkdir -p $DIR_DEST_ETC/digest
529,30 → 528,23
chmod 755 $DIR_DEST_ETC/digest
until [ -s $DIR_DEST_ETC/digest/key_admin ]
do
/usr/sbin/htdigest -c $DIR_DEST_ETC/digest/key_admin $HOSTNAME $admin_portal
/usr/sbin/htdigest -c $DIR_DEST_ETC/digest/key_admin $HOSTNAME $admin_portail
done
$DIR_DEST_SBIN/alcasar-profil.sh --list
else # mise à jour des versions < 2.1
if ([ $MAJ_RUNNING_VERSION -lt 2 ] || ([ $MAJ_RUNNING_VERSION -eq 2 ] && [ $MIN_RUNNING_VERSION -lt 1 ]))
then
if [ $Lang == "fr" ]
then
echo "Cette mise à jour nécessite de redéfinir le premier compte d'administration du portail"
echo
echo -n "Nom : "
else
echo "This update need to redefine the first admin account"
echo
echo -n "Account : "
fi
read admin_portal
echo "- Name of the first account of the admin profile : $admin_portal" >> $FIC_PARAM
echo "Cette mise à jour nécessite de redéfinir le premier compte d'administration du portail"
echo
echo -n "Nom : "
read admin_portail
echo "- Name of the first user of admin profile : $admin_portail" >> $FIC_PARAM
[ -d $DIR_DEST_ETC/digest ] && rm -rf $DIR_DEST_ETC/digest
mkdir -p $DIR_DEST_ETC/digest
chmod 755 $DIR_DEST_ETC/digest
until [ -s $DIR_DEST_ETC/digest/key_admin ]
do
/usr/sbin/htdigest -c $DIR_DEST_ETC/digest/key_admin $HOSTNAME $admin_portal
/usr/sbin/htdigest -c $DIR_DEST_ETC/digest/key_admin $HOSTNAME $admin_portail
done
$DIR_DEST_SBIN/alcasar-profil.sh --list
fi
850,7 → 842,9
# création du fichier d'allocation d'adresses IP statiques
touch $DIR_DEST_ETC/alcasar-ethers
# création des fichiers de sites, d'urls et d'adresses MAC de confiance
touch $DIR_DEST_ETC/alcasar-macallowed $DIR_DEST_ETC/alcasar-uamallowed $DIR_DEST_ETC/alcasar-uamdomain
echo -e "uamallowed=\"\"" > $DIR_DEST_ETC/alcasar-uamallowed
echo -e "uamdomain=\"\"" > $DIR_DEST_ETC/alcasar-uamdomain
touch $DIR_DEST_ETC/alcasar-macallowed
chown root:apache $DIR_DEST_ETC/alcasar-*
chmod 660 $DIR_DEST_ETC/alcasar-*
echo "- User disconnect URL : http://alcasar:3990/logoff" >> $FIC_PARAM