Skip to content

Commit

Permalink
Update install_apt.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
NebzHB committed Feb 22, 2024
1 parent 25fb0ab commit 7034179
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions resources/install_apt.sh
Expand Up @@ -22,30 +22,33 @@ silent sudo chown -R www-data $(realpath $BASEDIR/..)
lsb_release -c | grep jessie
if [ $? -eq 0 ]
then
today=$(date +%Y%m%d)
if [[ "$today" > "20200630" ]];
then
echo "$HR"
echo "== KO == Erreur d'Installation"
echo "$HR"
echo "== ATTENTION Debian 8 Jessie n'est officiellement plus supportée depuis le 30 juin 2020, merci de mettre à jour votre distribution !!!"
exit 1
fi
fi

#stretch is not supported because of old python
lsb_release -c | grep stretch
if [ $? -eq 0 ]
then
today=$(date +%Y%m%d)
if [[ "$today" > "20220630" ]];
then
echo "$HR"
echo "== KO == Erreur d'Installation"
echo "$HR"
echo "== ATTENTION Debian 9 Stretch n'est pas supporté car la version de python est trop vieille, merci de mettre à jour votre distribution !!!"
exit 1
fi
fi

#stretch is not supported because of old python
lsb_release -c | grep buster
if [ $? -eq 0 ]
then
echo "$HR"
echo "== KO == Erreur d'Installation"
echo "$HR"
echo "== ATTENTION Debian 10 Buster n'est pas supporté car la version de python est trop vieille, merci de mettre à jour votre distribution !!!"
exit 1
fi

step 5 "Mise à jour APT et installation des packages nécessaires"
Expand Down

0 comments on commit 7034179

Please sign in to comment.