mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-18 21:30:00 +10:00
AutoPkg: Fix settings file permission
This commit is contained in:
@@ -73,6 +73,16 @@ function _logFile() {
|
|||||||
echo "/Users/Shared/.OCLP-AutoPatcher-Log-$(/bin/date +"%Y_%m_%d_%I_%M_%p").txt"
|
echo "/Users/Shared/.OCLP-AutoPatcher-Log-$(/bin/date +"%Y_%m_%d_%I_%M_%p").txt"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function _fixSettingsFilePermission() {
|
||||||
|
local settingsPath="$pathToTargetVolume/Users/Shared/.com.dortania.opencore-legacy-patcher.plist"
|
||||||
|
|
||||||
|
if [[ -e $settingsPath ]]; then
|
||||||
|
echo "Fixing settings file permissions: $settingsPath"
|
||||||
|
/bin/chmod 666 $settingsPath
|
||||||
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
function _reboot() {
|
function _reboot() {
|
||||||
/sbin/reboot
|
/sbin/reboot
|
||||||
}
|
}
|
||||||
@@ -81,6 +91,7 @@ function _main() {
|
|||||||
_setSUIDBit "$pathToTargetVolume/$helperPath"
|
_setSUIDBit "$pathToTargetVolume/$helperPath"
|
||||||
_createAlias "$pathToTargetVolume/$mainAppPath" "$pathToTargetVolume/$shimAppPath"
|
_createAlias "$pathToTargetVolume/$mainAppPath" "$pathToTargetVolume/$shimAppPath"
|
||||||
_startPatching "$pathToTargetVolume/$executablePath"
|
_startPatching "$pathToTargetVolume/$executablePath"
|
||||||
|
_fixSettingsFilePermission
|
||||||
_reboot
|
_reboot
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user