mirror of
https://github.com/kforney/pentest-distro-builder.git
synced 2024-11-22 01:50:56 -07:00
Fix error check.
Former-commit-id: 4368f281c6fa56a69ce1c460f8556a2242fec2a6 Former-commit-id: e71be705e60356894c900d8dd48ae9f5fb53f259
This commit is contained in:
parent
a4cb9fc977
commit
a2db22a75d
1 changed files with 7 additions and 5 deletions
12
runme.sh
12
runme.sh
|
@ -69,6 +69,7 @@ apt install git build-essential cdebootstrap live-build curl wget -y
|
||||||
|
|
||||||
case $DISTRO in
|
case $DISTRO in
|
||||||
Kali)
|
Kali)
|
||||||
|
IMAGENAME=kali-rolling-$DESKTOP-$(date -I)-$(date +%H%M)
|
||||||
cp -rv ./modules/live-build-config ./build/
|
cp -rv ./modules/live-build-config ./build/
|
||||||
mkdir ./build/live-build-config/kali-config/variant-$DESKTOP/packages.chroot
|
mkdir ./build/live-build-config/kali-config/variant-$DESKTOP/packages.chroot
|
||||||
cp ./debs/*.deb build/live-build-config/kali-config/variant-$DESKTOP/packages.chroot/
|
cp ./debs/*.deb build/live-build-config/kali-config/variant-$DESKTOP/packages.chroot/
|
||||||
|
@ -83,10 +84,11 @@ Kali)
|
||||||
|
|
||||||
cd build/live-build-config
|
cd build/live-build-config
|
||||||
./build.sh --distribution kali-rolling --variant $DESKTOP --verbose
|
./build.sh --distribution kali-rolling --variant $DESKTOP --verbose
|
||||||
cp images/*.iso ../../images/kali-rolling-$DESKTOP-$(date -I)-$(date +%H%M).iso
|
cp images/*.iso ../../images/$IMAGENAME.iso
|
||||||
cp build.log ../../logs/kali-rolling-$DESKTOP-$(date -I)-$(date +%H%M).log
|
cp build.log ../../logs/$IMAGENAME.log
|
||||||
;;
|
;;
|
||||||
Parrot)
|
Parrot)
|
||||||
|
IMAGENAME=parrotsec-$DESKTOP-$(date -I)-$(date +%H%M)
|
||||||
cp -rv ./modules/parrot-build ./build/
|
cp -rv ./modules/parrot-build ./build/
|
||||||
mkdir ./build/parrot-build/templates/parrot-variant-$DESKTOP/packages.chroot
|
mkdir ./build/parrot-build/templates/parrot-variant-$DESKTOP/packages.chroot
|
||||||
cp ./debs/*.deb build/parrot-build/templates/parrot-variant-$DESKTOP/packages.chroot/
|
cp ./debs/*.deb build/parrot-build/templates/parrot-variant-$DESKTOP/packages.chroot/
|
||||||
|
@ -102,14 +104,14 @@ Parrot)
|
||||||
|
|
||||||
cd build/parrot-build
|
cd build/parrot-build
|
||||||
./build.sh build variant-$DESKTOP amd64
|
./build.sh build variant-$DESKTOP amd64
|
||||||
cp ../*.iso ../../images/parrotsec-$DESKTOP-$(date -I)-$(date +%H%M).iso
|
cp ../*.iso ../../images/$IMAGENAME.iso
|
||||||
cp buildlog.log ../../logs/parrotsec-$DESKTOP-$(date -I)-$(date +%H%M).log
|
cp logfile.log ../../logs/$IMAGENAME.log
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ $UNATTEND != "true" ]];
|
if [[ $UNATTEND != "true" ]];
|
||||||
then
|
then
|
||||||
if [ -f ../../images/parrotsec-$DESKTOP-$(date -I).iso ];
|
if [ -f ../../images/$IMAGENAME.iso ];
|
||||||
then
|
then
|
||||||
whiptail --backtitle "Pentest Build Script" --title "Finished" \
|
whiptail --backtitle "Pentest Build Script" --title "Finished" \
|
||||||
--msgbox "Fingers crossed there were no errors... Your image should be done!" 7 70
|
--msgbox "Fingers crossed there were no errors... Your image should be done!" 7 70
|
||||||
|
|
Loading…
Reference in a new issue