diff --git a/uploader-server/build-image-gallery.sh b/uploader-server/build-image-gallery.sh index c3bb6ed..0b5b131 100755 --- a/uploader-server/build-image-gallery.sh +++ b/uploader-server/build-image-gallery.sh @@ -2,13 +2,18 @@ # sets the UPLOADER_SERVER_HOME directory # the location where the image-gallery is checked out to -export UPLOADER_SERVER_HOME="/home/continuum/apache-continuum-1.4.0/data/working-directory/17" - +export UPLOADER_SERVER_HOME="/home/continuum/apache-continuum-1.4.0/data/working-directory/$1" cd $UPLOADER_SERVER_HOME + +# change the infusion path in image gallery ini setting file +sed 's;infusion = "../infusion";infusion = "infusion";g' image-gallery-settings.ini > image-gallery-settings.ini.new +mv image-gallery-settings.ini.new image-gallery-settings.ini + # clone infusion - git clone https://github.com/fluid-project/infusion.git +rm -rf infusion/ +git clone https://github.com/fluid-project/infusion.git -# run the image-gallery's install script and set the location of infusion -echo "../infusion" | bash install.sh +# run the image-gallery's install script +bash install.sh echo "end of script"