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:
authornachoparker <nacho@ownyourbits.com>2017-03-15 10:05:10 +0300
committernachoparker <nacho@ownyourbits.com>2017-03-15 10:05:10 +0300
commit71cfa60d22cf52b8d4789ac826368ede22dae6de (patch)
treee1bbb39bb1682fbb4c1c4f5802ef1367daa65117 /batch.sh
parent6ed507a7f7348eec25439d44eea2f724c75f79b8 (diff)
batch build improvements
Diffstat (limited to 'batch.sh')
-rwxr-xr-xbatch.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/batch.sh b/batch.sh
index c442c759..576ee580 100755
--- a/batch.sh
+++ b/batch.sh
@@ -11,15 +11,16 @@
IP=$1 # First argument is the QEMU Raspbian IP address
-IMG=$2 # TODO
-IMG=NextCloudPi_03-13-17.img
+IMGFILE="NextCloudPi_$( date "+%m-%d-%y" ).img"
-NO_CONFIG=1 NO_HALT_STEP=1 ./install-nextcloud.sh $IP
-NO_CONFIG=1 NO_CFG_STEP=1 ./installer.sh fail2ban.sh $IP $( ls -1t *.img | head -1 )
-NO_CONFIG=1 NO_CFG_STEP=1 ./installer.sh no-ip.sh $IP $( ls -1t *.img | head -1 )
-NO_CONFIG=1 NO_CFG_STEP=1 ./installer.sh dnsmasq.sh $IP $( ls -1t *.img | head -1 )
-#TODO rename to FULL
+NO_CONFIG=1 NO_HALT_STEP=1 ./install-nextcloud.sh $IP $IMGFILE
+NO_CONFIG=1 NO_CFG_STEP=1 ./installer.sh fail2ban.sh $IP $( ls -1t *.img | head -1 )
+NO_CONFIG=1 NO_CFG_STEP=1 ./installer.sh no-ip.sh $IP $( ls -1t *.img | head -1 )
+NO_CONFIG=1 NO_CFG_STEP=1 ./installer.sh dnsmasq.sh $IP $( ls -1t *.img | head -1 )
+NO_CONFIG=1 NO_CFG_STEP=1 ./installer.sh letsencrypt.sh $IP $( ls -1t *.img | head -1 )
+
+cp -v "$( ls -1t *.img | head -1 )" $( basename "$IMGFILE" .img )_FULL.img
# License
#