diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-03-13 21:20:26 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-03-14 20:14:35 +0300 |
commit | 2a49453204dc5f301883f6ea045980bf1325e53c (patch) | |
tree | b503277f174aa4e7e56e87c98ff48828f1d987bf /installer.sh | |
parent | 531c5d664d5c78c5bde30daf188ac33b78b7c6fe (diff) |
11.0.2 update. nextcloudpi-config integration. configure datadir and limits. offline copy. batch builds. fixes
Diffstat (limited to 'installer.sh')
-rwxr-xr-x | installer.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/installer.sh b/installer.sh index 4d41b686..0bfb3ae7 100755 --- a/installer.sh +++ b/installer.sh @@ -1,7 +1,7 @@ #!/bin/bash # Generic software installer for Raspbian. Online on a running RPi, or offline with QEMU. -# Tested with 2017-01-11-raspbian-jessie.img (and lite) +# Tested with 2017-03-02-raspbian-jessie-lite.img # # Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com> # GPL licensed (see end of file) * Use at your own risk! @@ -33,6 +33,7 @@ INSTALL_SCRIPT=$1 # First argument is the script to be run inside Raspbian IP=$2 # Second argument is the QEMU Raspbian IP address IMGFILE=$3 # Third argument is the image file to start from ( empty for online installation ) +CONFDIR=/usr/local/etc/nextcloudpi-config.d/ source library.sh # initializes $IMGOUT @@ -40,6 +41,7 @@ config $INSTALL_SCRIPT || exit 1 if [[ "$IMGFILE" != "" ]]; then launch_install_qemu "$IMGFILE" $IP || exit 1 + copy_to_image $( ls -1t $IMGFILE-stage* | head -1 ) $CONFDIR $INSTALL_SCRIPT || exit 1 pack_image "$IMGFILE" "$IMGOUT" else launch_installation_online $IP |