mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-08-19 13:43:40 +00:00
On a besoin de pycrypto.
This commit is contained in:
parent
ff68769c5a
commit
2381fd4bf9
2 changed files with 9 additions and 9 deletions
|
@ -29,8 +29,6 @@ setup_ldap() {
|
||||||
|
|
||||||
install_re2o_server() {
|
install_re2o_server() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
apt-get -y install sudo dialog
|
apt-get -y install sudo dialog
|
||||||
|
@ -107,7 +105,7 @@ clear
|
||||||
|
|
||||||
|
|
||||||
if [ $sql_is_local == 2 ]
|
if [ $sql_is_local == 2 ]
|
||||||
then
|
then
|
||||||
TITLE="Login sql"
|
TITLE="Login sql"
|
||||||
sql_login=$(dialog --title "$TITLE" \
|
sql_login=$(dialog --title "$TITLE" \
|
||||||
--backtitle "$BACKTITLE" \
|
--backtitle "$BACKTITLE" \
|
||||||
|
@ -169,7 +167,7 @@ ldap_password=$(dialog --title "$TITLE" \
|
||||||
2>&1 >/dev/tty)
|
2>&1 >/dev/tty)
|
||||||
clear
|
clear
|
||||||
if [ $ldap_is_local == 2 ]
|
if [ $ldap_is_local == 2 ]
|
||||||
then
|
then
|
||||||
TITLE="Cn ldap admin"
|
TITLE="Cn ldap admin"
|
||||||
ldap_cn=$(dialog --title "$TITLE" \
|
ldap_cn=$(dialog --title "$TITLE" \
|
||||||
--backtitle "$BACKTITLE" \
|
--backtitle "$BACKTITLE" \
|
||||||
|
@ -209,7 +207,7 @@ email_port=$(dialog --clear \
|
||||||
2>&1 >/dev/tty)
|
2>&1 >/dev/tty)
|
||||||
clear
|
clear
|
||||||
if [ $ldap_is_local == 2 ]
|
if [ $ldap_is_local == 2 ]
|
||||||
then
|
then
|
||||||
TITLE="Cn ldap admin"
|
TITLE="Cn ldap admin"
|
||||||
ldap_cn=$(dialog --title "$TITLE" \
|
ldap_cn=$(dialog --title "$TITLE" \
|
||||||
--backtitle "$BACKTITLE" \
|
--backtitle "$BACKTITLE" \
|
||||||
|
@ -240,6 +238,7 @@ apt-get -y install python3-django python3-dateutil texlive-latex-base texlive-fo
|
||||||
pip3 install django-bootstrap3
|
pip3 install django-bootstrap3
|
||||||
pip3 install django-ldapdb
|
pip3 install django-ldapdb
|
||||||
pip3 install django-macaddress
|
pip3 install django-macaddress
|
||||||
|
pip3 install pycrypto
|
||||||
|
|
||||||
if [ $sql_bdd_type == 1 ]
|
if [ $sql_bdd_type == 1 ]
|
||||||
then
|
then
|
||||||
|
@ -253,7 +252,7 @@ then
|
||||||
echo $mysql_command
|
echo $mysql_command
|
||||||
while true; do
|
while true; do
|
||||||
read -p "Continue (y/n)?" choice
|
read -p "Continue (y/n)?" choice
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
y|Y ) break;;
|
y|Y ) break;;
|
||||||
n|N ) exit;;
|
n|N ) exit;;
|
||||||
* ) echo "invalid";;
|
* ) echo "invalid";;
|
||||||
|
@ -276,14 +275,14 @@ else
|
||||||
echo sudo -u postgres psql $pgsql_command3
|
echo sudo -u postgres psql $pgsql_command3
|
||||||
while true; do
|
while true; do
|
||||||
read -p "Continue (y/n)?" choice
|
read -p "Continue (y/n)?" choice
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
y|Y ) break;;
|
y|Y ) break;;
|
||||||
n|N ) exit;;
|
n|N ) exit;;
|
||||||
* ) echo "invalid";;
|
* ) echo "invalid";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $ldap_is_local == 1 ]
|
if [ $ldap_is_local == 1 ]
|
||||||
then
|
then
|
||||||
|
@ -430,7 +429,7 @@ if [ ! -z "$1" ]
|
||||||
then
|
then
|
||||||
if [ $1 == ldap ]
|
if [ $1 == ldap ]
|
||||||
then
|
then
|
||||||
if [ ! -z "$2" ]
|
if [ ! -z "$2" ]
|
||||||
then
|
then
|
||||||
echo Installation du ldap
|
echo Installation du ldap
|
||||||
setup_ldap $2 $3
|
setup_ldap $2 $3
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
django-bootstrap3
|
django-bootstrap3
|
||||||
django-macaddress
|
django-macaddress
|
||||||
python-dateutil
|
python-dateutil
|
||||||
|
pycrypto
|
||||||
|
|
Loading…
Reference in a new issue