From 8b7b1ee06fbc59966c4d66ad14640822b6a2e6ce Mon Sep 17 00:00:00 2001 From: Elam Monnot Date: Thu, 2 Feb 2023 09:03:34 +0100 Subject: [PATCH] scripts installation pour debian --- scripts/Debian11/chname | 9 +++++++++ scripts/Debian11/gsb-start | 1 + scripts/Debian11/s-adm-start | 4 ++++ 3 files changed, 14 insertions(+) create mode 100644 scripts/Debian11/chname create mode 100644 scripts/Debian11/gsb-start create mode 100644 scripts/Debian11/s-adm-start diff --git a/scripts/Debian11/chname b/scripts/Debian11/chname new file mode 100644 index 0000000..8262900 --- /dev/null +++ b/scripts/Debian11/chname @@ -0,0 +1,9 @@ +#!/bin/bash + +if [[ $1 == "version" ]] ; then + echo 'chname v1.0 pour debian 11' + exit 0 +fi +sed -i "s/bullseye/$1/g" /etc/host{s,name} +echo 'redemarrer pour finaliser le changement du nom' +exit 0 diff --git a/scripts/Debian11/gsb-start b/scripts/Debian11/gsb-start new file mode 100644 index 0000000..79de328 --- /dev/null +++ b/scripts/Debian11/gsb-start @@ -0,0 +1 @@ +apt update;upgrade -y;mkdir -p /root/tools/ansible;cd /root/tools/ansible;git clone https://gitea.lyc-lecastel.fr/gadmin/gsb2023.git;cd gsb2023/pre;export DEPL=192.168.99.99;bash gsbboot;cd ../..;bash pull-config diff --git a/scripts/Debian11/s-adm-start b/scripts/Debian11/s-adm-start new file mode 100644 index 0000000..cb3614b --- /dev/null +++ b/scripts/Debian11/s-adm-start @@ -0,0 +1,4 @@ +apt update;apt upgrade -y; +mkdir -p tools/ansible;cd tools/ansible;git clone https://gitea.lyc-lecastel.fr/gadmin/gsb2023.git; +cd gsb2023/pre;bash inst-depl;cd /var/www/html/gsbstore;bash getall; +cd /root/tools/ansible/gsb2023/pre;bash gsbboot; cd ..;bash pull-config;