maj script

This commit is contained in:
svnet 2020-10-14 14:20:31 +02:00
parent 22bfa38a2b
commit ae31765826
2 changed files with 15 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 251 KiB

After

Width:  |  Height:  |  Size: 844 KiB

View File

@ -5,16 +5,22 @@
set -e
apt install -y live-build git
git clone https://git.weblib.re/svpro/svpro_gnu.git
cd svpro_gnu && git checkout $(git tag -l | tail -n 1)
ISO="live-svpro_gnu-amd64.iso"
# Recuperation iso
echo "Téléchargement de l'iso..."
sleep 5
wget -O ${ISO} https://www.weblib.re/dokuwiki/_media/svpro_gnu:live_svpro_gnu-amd64.hybrid.iso
wget -O ${ISO}.md5sum https://www.weblib.re/dokuwiki/_media/svpro_gnu:live_svpro_gnu-amd64.hybrid.iso.md5sum
echo "Vérification de l'image..."
if ! md5sum -c ${ISO}.md5sum
then
echo "ISO Corompue. Abandon !!"
rm -f ${ISO} ${ISO}.md5
exit 1
fi
# Build iso
lb clean
lb config
lb build
ISO=$(ls *.iso)
echo "ISO créée $(pwd)/$ISO"
# Copie de l'image iso sur clé
while getopts ":d: " opt; do
case $opt in