File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ dockerd &
55sleep 5
66
77if [ " $CLEAN " = true ]; then
8+ rm -f /images/DAppNode* .iso
89 rm -f /images/* .tar.xz
910 rm -f /images/* .yml
1011 rm -f /images/* .json
Original file line number Diff line number Diff line change 1515echo " Done!"
1616
1717echo " Verifying download..."
18- [[ " $( shasum -a 256 ${ISO_PATH} ) " != " $SHASUM " ]] && { echo " ERROR: wrong shasum" ; exit 1; }
18+ [[ " $( shasum -a 256 ${ISO_PATH} ) " != " $SHASUM " ]] && {
19+ echo " ERROR: wrong shasum"
20+ exit 1
21+ }
1922
2023echo " Clean old files..."
2124rm -rf dappnode-isoº
@@ -44,7 +47,7 @@ cd /images/bin/docker
4447cd - # /usr/src/app/dappnode-iso
4548
4649echo " Creating necessary directories and copying files..."
47- mkdir -p /usr/src/app/dappnode-iso/dappnode
50+ mkdir -p /usr/src/app/dappnode-iso/dappnode
4851cp -r /usr/src/app/scripts /usr/src/app/dappnode-iso/dappnode
4952cp -r /usr/src/app/dappnode/* /usr/src/app/dappnode-iso/dappnode
5053cp -vr /images/bin /usr/src/app/dappnode-iso/dappnode/
@@ -53,8 +56,8 @@ echo "Customizing preseed..."
5356mkdir -p /tmp/makeinitrd
5457cd install.amd
5558cp initrd.gz /tmp/makeinitrd/
56- if [[ ${ UNATTENDED} == " true" ]]; then
57- cp /usr/src/app/iso/preseeds/preseed_unattended.cfg /tmp/makeinitrd/preseed.cfg
59+ if [[ $UNATTENDED == * " true" * ]]; then
60+ cp /usr/src/app/iso/preseeds/preseed_unattended.cfg /tmp/makeinitrd/preseed.cfg
5861else
5962 cp /usr/src/app/iso/preseeds/preseed.cfg /tmp/makeinitrd/preseed.cfg
6063fi
You can’t perform that action at this time.
0 commit comments