Gimaweb updated + installation script

parent 1d803410
......@@ -2,7 +2,7 @@
if [ -z "$(which oathtool)" ]
then
apt-get update
apt-get -y install oathtool
apt-get -y install oathtool
fi
file="/home/direction/Documents/Partages_Serveur/CONFIDENTIEL_DIRECTION/.gimaweb_secret.totp"
secret=$(cat $file)
......@@ -13,5 +13,6 @@ then
else
firefox https://gimaweb-demandes.lametro.fr/gima &
fi
sleep 5
code=$(oathtool --totp --base32 $secret)
zenity --info --text "Votre code temporaire est : $code" --title "Votre code TOTP"
zenity --info --text "Votre code temporaire à copier est : $code" --title "Votre code TOTP est valide 30 secondes"
#!/bin/bash
DIR=$(realpath $(dirname $0))
cp $DIR/Demande_Batiment.desktop /home/direction/Bureau
......@@ -33,3 +33,4 @@ run_script fix_locales.sh
# run_script fix_network.sh
run_script fix_fsck.sh
run_script fix_proxy.sh
run_script install_gimaweb.sh
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment