secours-catholique

Des scripts pour aider à l'installation des postes en libre service du secours catholique de calais - retour accueil

git clone git://bebou.netlib.re/secours-catholique
Log | Files | Refs |

commit 5393fdaa0c17c003f6fc9eb26c11d9d28641b108
parent 7f6da013817d59de5e1e1ae28d5419f9ff420cf7
Auteurice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Wed, 12 Feb 2025 14:11:35 +0100

On remet disabled password sinon ça le demande

Faut doncune combinaison des deux !

Diffstat:
Mmakeconf | 26+++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/makeconf b/makeconf @@ -2,10 +2,10 @@ set -e -printf "Installation de accountsservice" +printf "Installation de accountsservice\n" apt -y install accountsservice -printf "Génération des locale" +printf "Génération des locale\n" sed -Ei.bak ' /ar_SD\.UTF-8/ s/^# //; /ar_SY\.UTF-8/ s/^# //; @@ -14,30 +14,30 @@ sed -Ei.bak ' /en_GB\.utf-8/ s/^# //;' /etc/locale.gen locale-gen -printf "copie des .desktop" +printf "copie des .desktop\n" mkdir -p /etc/skel/Desktop cp *.desktop /etc/skel/Desktop -printf "création des comptes" -adduser --allow-all-names --comment "" لهجة-سودانية || echo "compte existe probablement déjà" +printf "création des comptes\n" +adduser --allow-all-names --disabled-password --comment "" لهجة-سودانية || echo "compte existe probablement déjà" passwd -d لهجة-سودانية -adduser --allow-all-names --comment "" لهجات-سوريا || echo "compte existe probablement déjà" +adduser --allow-all-names --disabled-password --comment "" لهجات-سوريا || echo "compte existe probablement déjà" passwd -d لهجات-سوريا -adduser --allow-all-names --comment "" پښتو || echo "compte existe probablement déjà" +adduser --allow-all-names --disabled-password --comment "" پښتو || echo "compte existe probablement déjà" passwd -d پښتو -adduser --allow-all-names --comment "" فارسی || echo "compte existe probablement déjà" +adduser --allow-all-names --disabled-password --comment "" فارسی || echo "compte existe probablement déjà" passwd -d فارسی -adduser --allow-all-names --comment "" france || echo "compte existe probablement déjà" +adduser --allow-all-names --disabled-password --comment "" france || echo "compte existe probablement déjà" passwd -d france -adduser --allow-all-names --comment "" uk || echo "compte existe probablement déjà" +adduser --allow-all-names --disabled-password --comment "" uk || echo "compte existe probablement déjà" passwd -d uk -printf "Edition de la conf lightdm" +printf "Edition de la conf lightdm\n" sed -Ei.bak '/#greeter-hide-users/ s/^#//;' /etc/lightdm/lightdm.conf grep -vq "^indicators" /etc/lightdm/lightdm-gtk-greeter.conf \ && printf "indicators = ~host;~spacer;~clock;~spacer;~layout;~language;~session;~a11y;~power\n" >> /etc/lightdm/lightdm-gtk-greeter.conf -printf "Edition des fichiers des comptes (ne sert à rien ? :( )" +printf "Edition des fichiers des comptes (ne sert à rien ? :( )\n" dir="/var/lib/AccountsService" printf "ﻞﻬﺟﺓ-ﺱﻭﺩﺎﻨﻳﺓ ar_SD.UTF8 icon.sudan.png $dir ﻞﻬﺟﺎﺗ-ﺱﻭﺮﻳﺍ ar_SY.UTF8 icon.syria.png $dir @@ -46,6 +46,6 @@ printf "ﻞﻬﺟﺓ-ﺱﻭﺩﺎﻨﻳﺓ ar_SD.UTF8 icon.sudan.png $dir france fr_FR.UTF8 icon.france.png $dir uk en_GB.UTF8 icon.uk.png $dir" | xargs -n4 sudo ./makeuserfile -printf "arrivé à la fin, reboot ? (O/n)" +printf "arrivé à la fin, reboot ? (O/n) " read c [ "$c" = "O" ] && reboot || exit 0