#!/bin/bash
sudo killall -9 python2.6
sudo launchctl unload -w "/Library/PreferenceBundles/SiriServer.bundle/com.sygex.siriserver.plist"
sudo rm -rf /var/tmp/assistantserver.log
cd /var/mobile/SiriServerCore/
sudo git stash
sudo git pull >> /var/mobile/SiriServerCore/gitpull.log
sudo echo "Last update on: $(date)" >> /var/mobile/SiriServerCore/gitpull.log
sudo chown -R mobile:mobile /var/mobile/SiriServerCore/
sudo chmod -R 777 /var/mobile/SiriServerCore/
sudo launchctl load -w "/Library/PreferenceBundles/SiriServer.bundle/com.sygex.siriserver.plist"

