mirror of https://github.com/Jackett/Jackett
Improve macOS install with better debug (#8958)
This commit is contained in:
parent
d95dcc42c7
commit
831f7b317a
|
@ -66,14 +66,29 @@ fi
|
||||||
# Run the agent
|
# Run the agent
|
||||||
launchctl load ~/Library/LaunchAgents/org.user.Jackett.plist
|
launchctl load ~/Library/LaunchAgents/org.user.Jackett.plist
|
||||||
|
|
||||||
# Check that it's running
|
# Check that it's launched
|
||||||
|
userid=$(id -u)
|
||||||
if [[ $(launchctl list | grep org.user.Jackett) ]]; then
|
if [[ $(launchctl list | grep org.user.Jackett) ]]; then
|
||||||
echo "${BOLDGREEN}Agent successfully installed and launched!${NC}"
|
if [[ $(launchctl print gui/${userid}/org.user.Jackett | grep 'state') =~ "running" ]]; then
|
||||||
else
|
echo "${BOLDGREEN}Agent successfully installed and running!${NC}"
|
||||||
cat << EOL
|
echo "Jackett location: ${jackettdir}"
|
||||||
${BOLDRED}ERROR${NC}: Could not launch agent. The installation might have failed.
|
echo "Jackett agent:"
|
||||||
|
launchctl print gui/${userid}/org.user.Jackett | egrep 'state|pid |path|working'
|
||||||
|
else
|
||||||
|
cat << EOL
|
||||||
|
${BOLDRED}ERROR${NC}: Agent was loaded but is not running. The installation might have failed.
|
||||||
Please open an issue on https://github.com/Jackett/Jackett/issues and paste following information:
|
Please open an issue on https://github.com/Jackett/Jackett/issues and paste following information:
|
||||||
Jackett directory: \`${jackettdir}\`
|
*Jackett directory*: ${jackettdir}
|
||||||
|
*launchctl info*:
|
||||||
|
$(launchctl print gui/${userid}/org.user.Jackett)
|
||||||
|
*LaunchAgents permissions*:
|
||||||
|
$(ls -la ~/Library/LaunchAgents | egrep ' \.|Jackett')
|
||||||
|
|
||||||
EOL
|
EOL
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "${BOLDRED}ERROR${NC}: Agent could not be loaded. Please open an issue on https://github.com/Jackett/Jackett/issues and paste the output."
|
||||||
|
echo "*Jackett directory*: ${jackettdir}"
|
||||||
|
echo "*LaunchAgents permissions*:"
|
||||||
|
ls -la ~/Library/LaunchAgents | egrep ' \.|Jackett'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue