Compare commits

..

No commits in common. "9091453119c9a55d313a64a8cc961a4b669b3df5" and "4bbd472f444fd4182311e2fd158a098eabf3a7ca" have entirely different histories.

7 changed files with 15 additions and 41 deletions

View File

@ -34,7 +34,7 @@ if [[ $? != 0 ]]; then
${APT} install -y git-core
fi
${APT} update
#${APT} upgrade -y
${APT} upgrade -y
which ansible >> /dev/null
if [[ $? != 0 ]]; then

9
scripts/Debian11/chname Normal file
View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -1,14 +0,0 @@
#!/bin/bash
if [[ $# != 1 ]] ; then
echo "$0 - renomme une VM"
echo "usage : $0 <nouveaunom> "
exit 1
fi
if [[ $1 == "version" ]] ; then
echo 'chname v1.1 pour debian 11'
exit 0
fi
oldname=$(hostname)
sed -i "s/${oldname}/$1/g" /etc/host{s,name}
echo 'redemarrer pour finaliser le changement du nom'
exit 0

View File

@ -1,11 +0,0 @@
#!/bin/bash
apt-get 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

View File

@ -1,15 +0,0 @@
#!/bin/bash
apt-get 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