macos: Update postinstall instructions for MacOS 13 50/15150/4
authorGanesh Chaudhari <gangovind@in.ibm.com>
Fri, 7 Oct 2022 16:22:40 +0000 (21:22 +0530)
committerBenjamin Kaduk <kaduk@mit.edu>
Mon, 24 Oct 2022 21:12:24 +0000 (17:12 -0400)
System preferences is getting replaced by System settings in MacOS 13.
So, this commit will address the required changes in the dialog box
which gets popped after installing OpenAFS.

Change-Id: I56ddb1d43ef5994ac30d5383bf8a376b43419724
Signed-off-by: Ganesh Chaudhari <gangovind@in.ibm.com>
Reviewed-on: https://gerrit.openafs.org/15150
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>

src/packaging/MacOS/OpenAFS.post_install

index 6e7e706..620ddae 100644 (file)
@@ -162,14 +162,26 @@ if [ $majorvers -ge 19 ]; then
     # If so, inform what needs to be done to load the client. This procedure is
     # unnecessary if OpenAFS is being reinstalled.
     if [ ! -d /afs ]; then
-       osascript -e 'display alert "OpenAFS successfully installed" message ¬
-       "If OpenAFS is being installed for the first time on this machine, " & ¬
-       "follow the steps below:\n\n" & ¬
-       "1. Navigate to System Preferences > Security & Privacy;\n\n" & ¬
-       "2. Under the General tab towards the bottom of the window, allow " & ¬
-       "the OpenAFS kernel extension to load by clicking on Allow;\n\n" & ¬
-       "3. Reboot the machine;\n\n" & ¬
-       "Note: An entry for /afs was added in /etc/synthetic.conf. This " & ¬
-       "change takes effect only after rebooting the system."'
+       if [ $majorvers -ge 22 ]; then
+               osascript -e 'display alert "OpenAFS successfully installed" message ¬
+               "If OpenAFS is being installed for the first time on this machine, " & ¬
+               "follow the steps below:\n\n" & ¬
+               "1. Navigate to System Settings > Privacy & Security;\n\n" & ¬
+               "2. Under the Security section towards the bottom of the window, allow " & ¬
+               "the OpenAFS kernel extension to load by clicking on Allow;\n\n" & ¬
+               "3. Reboot the machine;\n\n" & ¬
+               "Note: An entry for /afs was added in /etc/synthetic.conf. This " & ¬
+               "change takes effect only after rebooting the system."'
+       else
+               osascript -e 'display alert "OpenAFS successfully installed" message ¬
+               "If OpenAFS is being installed for the first time on this machine, " & ¬
+               "follow the steps below:\n\n" & ¬
+               "1. Navigate to System Preferences > Security & Privacy;\n\n" & ¬
+               "2. Under the General tab towards the bottom of the window, allow " & ¬
+               "the OpenAFS kernel extension to load by clicking on Allow;\n\n" & ¬
+               "3. Reboot the machine;\n\n" & ¬
+               "Note: An entry for /afs was added in /etc/synthetic.conf. This " & ¬
+               "change takes effect only after rebooting the system."'
+       fi
     fi
 fi