https://wiki.afp548.com/index.php?title=Adobe_Update_Server_Nightly_Sync&feed=atom&action=historyAdobe Update Server Nightly Sync - Revision history2024-03-29T14:25:15ZRevision history for this page on the wikiMediaWiki 1.34.0https://wiki.afp548.com/index.php?title=Adobe_Update_Server_Nightly_Sync&diff=818&oldid=prevNatewalck at 01:50, 1 April 20122012-04-01T01:50:00Z<p></p>
<p><b>New page</b></p><div>With CS5, Adobe has added the ability to have a local software update server. While the script works nice, it needs to be run manually to sync against Adobe's servers. Below are scripts I made to automatically sync the updates every night.<br />
<br />
===LaunchDaemon===<br />
<br />
edu.pct.AdobeUpdateSync.plist - Place in /Library/LaunchDaemons - Load with launchctl load /Library/LaunchDaemons/edu.pct.AdobeUpdateSync.plist - Permissions should be root:wheel with 644 permissions.<br />
<syntaxhighlight lang="bash"><br />
<?xml version="1.0" encoding="UTF-8"?><br />
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><br />
<plist version="1.0"><br />
<dict><br />
<key>Label</key><br />
<string>edu.pct.AdobeUpdateSync</string><br />
<key>ProgramArguments</key><br />
<array><br />
<string>/usr/local/bin/asus-wrapper.sh</string><br />
</array><br />
<key>StartCalendarInterval</key><br />
<dict><br />
<key>Hour</key><br />
<integer>5</integer><br />
<key>Minute</key><br />
<integer>0</integer><br />
</dict><br />
</dict><br />
</plist><br />
</syntaxhighlight><br />
<br />
===Sync Script===<br />
<br />
Here is the script that actually does the syncing. Place this in /usr/local/bin as root:staff, 755 permissions.<br />
<br />
<syntaxhighlight lang="bash"><br />
#!/bin/sh<br />
DATE=`date "+%m%d%y-%H%M%S"`<br />
echo "--------------------------------" >> /var/log/asus-sync.log<br />
echo "Date: ${DATE}" >> /var/log/asus-sync.log<br />
echo "2" | /Applications/AdobeUpdateServerSetupToolCS5.app/Contents/MacOS/AdobeUpdateServerSetupToolCS5 --root="/Volumes/Storage1/Adobe Updates/CS5" >> /var/log/asus-sync.log<br />
echo "--------------------------------" >> /var/log/asus-sync.log<br />
</syntaxhighlight><br />
<br />
This currently logs to /var/log/asus-sync.log, this way you can see whats going on. <br />
<br />
===Note for AUSST2.0===<br />
There shouldn't need to be anything special. I've dropped the 2.0 tool along side the 1.0, and just updated the asus-wrapper.sh file to read "AdobeUpdateServerSetupTool2.0" instead of "AdobeUpdateServerSetupToolCS5"<br />
<br />
[[Category:Scripts]]</div>Natewalck