FileWave Alliance

The Official Community Forum
  • Page:
  • 1

TOPIC: Package + Script Fileset

Package + Script Fileset 22 Aug 2017 16:30 #2667

  • Patrick Kock
  • Patrick Kock's Avatar Topic Author
  • Offline
  • 1st level - White Belt
  • 1st level - White Belt
  • Posts: 2
  • Thank you received: 0
Is there an easy way to have FileWave install a PKG and then run a script postflight? Specifically, I am trying to install the Lightspeed User Agent.pkg and then run the following script after: sudo defaults write useragent IdentServer -string "rocket.southernacademy.org"

I created a MSI/PKG Fileset and dropped my UserAgent.pkg in it but how do I make sure a script runs after that?

Thanks!

Package + Script Fileset 22 Aug 2017 16:40 #2668

  • Bao Tran
  • Bao Tran's Avatar
  • Offline
  • FileWave Staff
  • FileWave Staff
  • Posts: 103
  • Karma: 4
  • Thank you received: 13
1. Highlight your fileset and click the Scripts icon in the toolbar at the top of the FileWave Admin console window.
2. Highlight Postflight Scripts and click the Create button.
3. Enter a name for your script and click OK.
4. A text editor window will open. Paste your script right above the line that says "exit 0".

Since the script runs as root you can probably leave out the "sudo" in your scripts but I don't think there's any issues if you leave it in.
The following user(s) said Thank You: Patrick Kock

Package + Script Fileset 22 Aug 2017 18:13 #2670

  • Patrick Kock
  • Patrick Kock's Avatar Topic Author
  • Offline
  • 1st level - White Belt
  • 1st level - White Belt
  • Posts: 2
  • Thank you received: 0
So much easier than I thought. Thank you!
  • Page:
  • 1