mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
update mac install cmd
This commit is contained in:
@@ -65,7 +65,7 @@ curl -s https://raw.githubusercontent.com/YouROK/TorrServer/master/installTorrSe
|
||||
Run in Terminal.app
|
||||
|
||||
```bash
|
||||
curl -s https://raw.githubusercontent.com/YouROK/TorrServer/master/installTorrServerMac.sh -o installTorrserverMac.sh && chmod 755 installTorrServerMac.sh && sudo bash ./installTorrServerMac.sh
|
||||
curl -s https://raw.githubusercontent.com/YouROK/TorrServer/master/installTorrServerMac.sh -o installTorrserverMac.sh && chmod 755 installTorrServerMac.sh && bash ./installTorrServerMac.sh
|
||||
```
|
||||
|
||||
Alternative install script for Intel Macs: <https://github.com/dancheskus/TorrServerMacInstaller>
|
||||
|
||||
@@ -79,6 +79,7 @@ function installTorrServer() {
|
||||
echo " Устанавливаем TorrServer $(getLatestRelease)…"
|
||||
echo ""
|
||||
}
|
||||
user=$(whoami)
|
||||
binName="TorrServer-darwin-${architecture}"
|
||||
[[ ! -d "$dirInstall" ]] && mkdir -p ${dirInstall} && chmod a+rw ${dirInstall}
|
||||
urlBin="https://github.com/YouROK/TorrServer/releases/download/$(getLatestRelease)/${binName}"
|
||||
@@ -178,6 +179,7 @@ EOF
|
||||
sysPath="${HOME}/Library/LaunchAgents"
|
||||
[[ ! -d "$sysPath" ]] && mkdir -p ${sysPath}
|
||||
cp "$dirInstall/$serviceName.plist" $sysPath
|
||||
sudo chown $user "$sysPath/$serviceName.plist"
|
||||
chmod 0644 "$sysPath/$serviceName.plist"
|
||||
launchctl load -w "$sysPath/$serviceName.plist" 1>/dev/null 2>&1
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user