diff --git a/g1-stats.sh b/g1-stats.sh index 0d10139..0c9433e 100755 --- a/g1-stats.sh +++ b/g1-stats.sh @@ -6,6 +6,7 @@ if [[ -e $SCRIPTPATH/.env ]]; then source $SCRIPTPATH/.env; else echo "Veuillez ### Initialisation des données ### startTime=$(date +'%H:%M') day=$(date +'%y-%m-%d') +dayP=$(date +'%d-%m-%y') id=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) indexhtml="$WEBPATH/index.html" echo -e "\n############# $day à $startTime #############\n" @@ -110,7 +111,7 @@ web() { sed -i "s/_pourcentWallets/$pourcentWallets/g" $indexhtml # sed -i "s/_node/$DUNITER/g" $indexhtml sed -i "s/_heure/$startTime/g" $indexhtml - sed -i "s/_day/$day/g" $indexhtml + sed -i "s/_day/$dayP/g" $indexhtml sed -i "s/_txInSimple/$txInSimple/g" $indexhtml sed -i "s/_txOutSimple/$txOutSimple/g" $indexhtml sed -i "s/_soldeSimple/$soldeSimple/g" $indexhtml