mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 03:13:42 -05:00
15 lines
400 B
Bash
Executable File
15 lines
400 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Removing application and dependencies"
|
|
|
|
if [ -d "/home/notify-app/notifications-admin" ]; then
|
|
# Remove and re-create the directory
|
|
rm -rf /home/notify-app/notifications-admin
|
|
mkdir -vp /home/notify-app/notifications-admin
|
|
# Remove installed py3 packages
|
|
pip3 freeze | xargs pip3 uninstall -y
|
|
else
|
|
echo "Directory does not exist, something went wrong!"
|
|
fi
|
|
|