Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'installer.sh')
-rwxr-xr-xinstaller.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/installer.sh b/installer.sh
index d6f2c06c..b170126b 100755
--- a/installer.sh
+++ b/installer.sh
@@ -38,10 +38,12 @@ IMGFILE=$3 # Third argument is the image file to start from ( empty
source etc/library.sh # initializes $IMGNAME
+test -f $IMGNAME && { echo "INFO: $IMGNAME already exists. Skip generation ... "; exit 0; }
+
config $INSTALL_SCRIPT || exit 1 # Initializes $INSTALLATION_CODE
if [[ "$IMGFILE" != "" ]]; then
- launch_install_qemu "$IMGFILE" $IP || { sudo killall qemu-system-arm; exit 1; } # initializes $IMGOUT
+ launch_install_qemu "$IMGFILE" $IP || { sudo killall qemu-system-arm; exit 1; } # initializes $IMGOUT
pack_image "$IMGOUT" "$IMGNAME"
else
launch_installation_online $IP