Skip to content

Commit

Permalink
Kill server if running prior to installation
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmartin committed Nov 18, 2024
1 parent 71cfde3 commit b0fe60b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/scripts/mac_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ rm -rf "$APP_SHORTCUT_PATH"
rm -rf "$HOME/psyneulinkviewer-darwin-x64/"
rm -rf "$DESKTOP_PATH/$SHORTCUT_NAME.app"

ps aux | grep rpc_server | grep -v grep | awk '{print $2}' | xargs kill -9

pip uninstall psyneulinkviewer && pip cache purge
pip install -vv psyneulinkviewer --break-system-packages --use-pep517 && source ~/.bashrc_profile
check_last_command
Expand All @@ -40,7 +42,6 @@ CONDA_SH=$(find ~ -name conda.sh 2>/dev/null | head -n 1)
# Write the .command file that launches the app with conda environment
cat <<EOL > "$COMMAND_FILE_PATH"
#!/bin/bash
ps aux | grep rpc_server | grep -v grep | awk '{print $2}' | xargs kill -9
source ~/.bashrc_profile
source $CONDA_SH
conda activate $PSYNEULINK_ENV
Expand Down

0 comments on commit b0fe60b

Please sign in to comment.