nettoyages des script et arret des scripts en cas d'erreur
This commit is contained in:
47
start.sh
47
start.sh
@@ -1,22 +1,29 @@
|
||||
#!/bin/bash
|
||||
set -eu
|
||||
# définition de l'url contenant les scripts
|
||||
RAWDIR=https://git.jmanson.fr/jeremy/installer_gentoo/raw/master
|
||||
wget -P /tmp/ $RAWDIR/env.sh 2>> err.log
|
||||
wget -P /tmp/ $RAWDIR/downloader.sh 2>> err.log
|
||||
wget -P /tmp/ $RAWDIR/partitions.sh 2>> err.log
|
||||
wget -P /tmp/ $RAWDIR/grubconfig.sh 2>> err.log
|
||||
wget -P /tmp/ $RAWDIR/extract_and_mount.sh 2>> err.log
|
||||
wget -P /tmp/ $RAWDIR/sysconfig.sh 2>> err.log
|
||||
wget -P /tmp/ $RAWDIR/portageconfig.sh 2>> err.log
|
||||
wget -P /tmp/ $RAWDIR/portageinstall.sh 2>> err.log
|
||||
wget -P /tmp/ $RAWDIR/kernelinstall.sh 2>> err.log
|
||||
wget -P /tmp/ $RAWDIR/sudoconfig.sh 2>> err.log
|
||||
source /tmp/env.sh 2>> err.log
|
||||
sh /tmp/partitions.sh 2>> err.log
|
||||
sh /tmp/downloader.sh 2>> err.log
|
||||
sh /tmp/extract_and_mount.sh 2>> err.log
|
||||
sh /tmp/sysconfig.sh 2>> err.log
|
||||
sh /tmp/portageconfig.sh 2>> err.log
|
||||
sh /tmp/portageinstall.sh 2>> err.log
|
||||
sh /tmp/kernelinstall.sh 2>> err.log
|
||||
sh /tmp/sudoconfig.sh 2>> err.log
|
||||
sh /tmp/grubconfig.sh 2>> err.log
|
||||
|
||||
# Téléchargements des scripts
|
||||
wget -P /tmp/ $RAWDIR/env.sh
|
||||
wget -P /tmp/ $RAWDIR/downloader.sh
|
||||
wget -P /tmp/ $RAWDIR/partitions.sh
|
||||
wget -P /tmp/ $RAWDIR/grubconfig.sh
|
||||
wget -P /tmp/ $RAWDIR/extract_and_mount.sh
|
||||
wget -P /tmp/ $RAWDIR/sysconfig.sh
|
||||
wget -P /tmp/ $RAWDIR/portageconfig.sh
|
||||
wget -P /tmp/ $RAWDIR/portageinstall.sh
|
||||
wget -P /tmp/ $RAWDIR/kernelinstall.sh
|
||||
wget -P /tmp/ $RAWDIR/sudoconfig.sh
|
||||
# ouvrir les varriables
|
||||
source /tmp/env.sh
|
||||
|
||||
# lancer les scripts
|
||||
sh /tmp/partitions.sh
|
||||
sh /tmp/downloader.sh
|
||||
sh /tmp/extract_and_mount.sh
|
||||
sh /tmp/sysconfig.sh
|
||||
sh /tmp/portageconfig.sh
|
||||
sh /tmp/portageinstall.sh
|
||||
sh /tmp/kernelinstall.sh
|
||||
sh /tmp/sudoconfig.sh
|
||||
sh /tmp/grubconfig.sh
|
||||
Reference in New Issue
Block a user