Skip to content

Commit

Permalink
Path Updates
Browse files Browse the repository at this point in the history
Changed default path to /Users/Shared/MAUCache.

Changed cache logic to create Cache path rather than exiting if it does
not exist.

Removed CheckInterval flag from Readme.
  • Loading branch information
jaknz committed Oct 17, 2016
1 parent c65c179 commit 03ca541
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 2 additions & 3 deletions MAUCacheAdmin
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ function InitializeScratchArea {
function InitializeCacheArea {
# Verifies cache area connectivity and cleans up as necessary
if [ ! -d "$CACHEPATH" ]; then
echo "Error: $CACHEPATH is not accessible"
echo
exit 1
mkdir -p "$CACHEPATH"
fi
chmod -R u+rwX,go+rX-w "$CACHEPATH"
}

function ResolveDownloadUrl {
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# MAUCacheAdmin
<b>Microsoft AutoUpdate Cache Admin</b>

Purpose: Downloads MAU collateral and packages from the Office CDN to a local web server</br>
Usage: MAUCacheAdmin --CachePath:<path> [--CheckInterval:<minutes>] [--HTTPOnly] [--NoCollateral]</br>
Example: MAUCacheAdmin --CachePath:/Volumes/web/MAU/cache --CheckInterval:60</br>
Purpose: Downloads MAU collateral and packages from the Office CDN to a local web server. Default cache location is `/Users/Shared/MAUCache`.

Usage: MAUCacheAdmin --CachePath:<path> [--HTTPOnly] [--NoCollateral]

Example: MAUCacheAdmin --CachePath:/Volumes/web/MAU/cache
2 changes: 1 addition & 1 deletion com.github.jaknz.maucache.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/MAUCacheAdmin</string>
<string>--CachePath:/Volumes/Storage/MAUCache</string>
<string>--CachePath:/Users/Shared/MAUCache</string>
</array>
<key>RunAtLoad</key>
<true/>
Expand Down

0 comments on commit 03ca541

Please sign in to comment.