move disable sep step after crack
This commit is contained in:
parent
34841fa289
commit
86b02b8fe9
30
install.sh
30
install.sh
|
@ -70,23 +70,12 @@ if [ "$EUID" -ne 0 ]; then
|
|||
exit $?
|
||||
fi
|
||||
|
||||
# is prl_disp_service running?
|
||||
if ! pgrep -x "prl_disp_service" > /dev/null; then
|
||||
# if prl_disp_service running, stop it
|
||||
if pgrep -x "prl_disp_service" > /dev/null; then
|
||||
echo -e "${COLOR_INFO}[*] Start Parallels Service${NOCOLOR}"
|
||||
"${PDFM_DIR}/Contents/MacOS/Parallels Service" service_start 2>&1>/dev/null
|
||||
"${PDFM_DIR}/Contents/MacOS/Parallels Service" service_stop >/dev/null
|
||||
fi
|
||||
|
||||
echo -e "${COLOR_INFO}[*] Exit Parallels Desktop account ...${NOCOLOR}"
|
||||
"${PDFM_DIR}/Contents/MacOS/prlsrvctl" web-portal signout 2>&1>/dev/null
|
||||
|
||||
echo -e "${COLOR_INFO}[*] Disable CEP ...${NOCOLOR}"
|
||||
"${PDFM_DIR}/Contents/MacOS/prlsrvctl" set --cep off 2>&1>/dev/null
|
||||
"${PDFM_DIR}/Contents/MacOS/prlsrvctl" set --allow-attach-screenshots off 2>&1>/dev/null
|
||||
|
||||
echo -e "${COLOR_INFO}[*] Exit Parallels Desktop${NOCOLOR}"
|
||||
"${PDFM_DIR}/Contents/MacOS/Parallels Service" service_stop 2>&1>/dev/null
|
||||
killall prl_client_app >/dev/null 2>&1
|
||||
|
||||
echo -e "${COLOR_INFO}[*] Copy prl_disp_service${NOCOLOR}"
|
||||
|
||||
chflags -R 0 "${PDFM_DISP_DST}" || { echo -e "${COLOR_ERR}error $? at line $LINENO.${NOCOLOR}"; exit $?; }
|
||||
|
@ -130,4 +119,17 @@ if [ "${FILE_HASH}" != "${LICENSE_HASH}" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# is prl_disp_service not running, start it
|
||||
if ! pgrep -x "prl_disp_service" > /dev/null; then
|
||||
echo -e "${COLOR_INFO}[*] Start Parallels Service${NOCOLOR}"
|
||||
"${PDFM_DIR}/Contents/MacOS/Parallels Service" service_start >/dev/null
|
||||
fi
|
||||
|
||||
echo -e "${COLOR_INFO}[*] Exit Parallels Desktop account ...${NOCOLOR}"
|
||||
"${PDFM_DIR}/Contents/MacOS/prlsrvctl" web-portal signout >/dev/null
|
||||
|
||||
echo -e "${COLOR_INFO}[*] Disable CEP ...${NOCOLOR}"
|
||||
"${PDFM_DIR}/Contents/MacOS/prlsrvctl" set --cep off >/dev/null
|
||||
"${PDFM_DIR}/Contents/MacOS/prlsrvctl" set --allow-attach-screenshots off >/dev/null
|
||||
|
||||
echo -e "${COLOR_INFO}[*] Crack over${NOCOLOR}"
|
||||
|
|
Loading…
Reference in New Issue