Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat Installer and CICD nightly, beta, stable for cortexcpp #1122

Merged
merged 14 commits into from
Sep 11, 2024
Prev Previous commit
Next Next commit
Add macos installer
jan-service-account committed Sep 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 722ec0c4a78117cdbccff5177c5d95f6b7230d36
32 changes: 32 additions & 0 deletions engine/templates/macos/cortex-uninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash

# required root privileges
if [ "$EUID" -ne 0 ]
then echo "Please run as root with sudo"
exit
fi

rm /usr/local/bin/cortex

echo "Do you want to delete the 'cortex' data folder for all users? (yes/no)"
read -r answer

case "$answer" in
[yY][eE][sS]|[yY])
echo "Deleting 'cortex' data folders..."
for userdir in /Users/*; do
if [ -d "$userdir/cortex" ]; then
echo "Removing $userdir/cortex"
rm -rf "$userdir/cortex" > /dev/null 2>&1
fi
done
;;
[nN][oO]|[nN])
echo "Keeping the 'cortex' data folders."
;;
*)
echo "Invalid response. Please type 'yes' or 'no'."
;;
esac

rm /usr/local/bin/cortex-uninstall.sh