There are a couple ways you could go about doing this. You could write a bash script to grab the file off of your jss and place it where needed, or you could use composer to create a package that does essentially the same thing.
Feel Free to Remove the variables. I'm Not 100% on if it'll work with them that way
#!/bin/bash
file='whatever.zip'
dirrec='/Library/Application Support/inSync'
if [ ! -d $dirrec ]
then
#Make the folder
mkdir $dirrec
fi
#Go to folder
cd $dirrec
#download file
curl -LO http://Your.Jss/CasperShare/Packages/$file
#Unzip files
unzip $file
cp ${dirrec}${file%????}/inSyncConfig.ini $dirrec
sleep 10
#Remove Temp Directory
rm -rf ${dirrec}${file%????}
#Remove Zip File
rm -rf ${dirrec}$file
exit
Something along those lines would work I think. You could probably leave out the "sleep" command but I put it in just in case.
Or you could simply create a package with composer that installs it into /Library/Application Support/inSync.
You might want to add a preinstall script that creates /Library/Application Support/inSync if it isn't already there, although I don't work with composer enough to know if it will just create the directory for you or not.
Thanks Asnyder! I'll give this a go and let you know. Very much appreciated for assistance.
Not a problem! The script is basically written to take a zipped version of the file and place it where needed. I'm don't know how much bash knowledge you have if you need to modify the script any but any questions and I'll be glad to help.
Hello Asnyder, I'm a noob when it comes to scripting but I was able to work with an SE from Druva who helped me to script out something along these lines. Once again, thanks for your assistance which put me on the correct path to getting this deployment going on our Cloud Hosted instance.
Hi AFlandez, I have had the same question. Did you end up using Composer at all? Or just create a script in JSS along with the installer? I haven't been successful with Composer so far. Which SE from Druva did you work with, if you don't mind sharing?
Any update on the success of this? We are currently going to use Druva inSync and would like to know if this works.
@Will_M are you still working on a Druva rollout or did you get that going? I am in the process of rolling it out as well, and it appears that the documentation linked in this post is pretty old. I've got it working and I'd be happy to share if you're still working it out.
@eprice thank you for the response. Yes, I was able to deploy it with no issues.
@eprice
I'd love if it you could share your insight...We are about to set out on deploying this too!
@eprice i would love to connect and talk about this if you’re able