Browse Source

Update MacInitial.sh

MoeClub 4 years ago
parent
commit
9f56418501
1 changed files with 9 additions and 0 deletions
  1. 9 0
      MacInitial.sh

+ 9 - 0
MacInitial.sh

@@ -190,6 +190,14 @@ ENABLEALL "./System/Library/LaunchDaemons"
 # Enable /System/Library/LaunchAgents
 ENABLEALL "./System/Library/LaunchAgents"
 
+# Enable Update Check
+echo -e "\n# Enable Update Check ..."
+if [ -f "/usr/bin/sudo" ]; then
+sudo find "/System/Library/CoreServices/Software Update.app" -type f -name "softwareupdated" |xargs -t -I "{}" sudo chmod 755 "{}"
+else
+find "/System/Library/CoreServices/Software Update.app" -type f -name "softwareupdated" |xargs -t -I "{}" chmod 755 "{}"
+fi
+
 # Enable and Exit
 # exit 0
 
@@ -224,5 +232,6 @@ sudo find "/System/Library/CoreServices/Software Update.app" -type f -name "soft
 else
 find "/System/Library/CoreServices/Software Update.app" -type f -name "softwareupdated" |xargs -t -I "{}" chmod 644 "{}"
 fi
+
 # Finish
 echo -e "\n# Finish! \n"