Skip to content

Commit 463304f

Browse files
author
AlphaRandom
authored
Create uninstall_supersecure_bank.sh
1 parent 09ae7a9 commit 463304f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
# Uninstallation script for Banking Transaction Simulator
4+
5+
# Variables
6+
INSTALL_DIR="/usr/local/banking_simulator"
7+
SERVICE_PATH="/etc/systemd/system/banking.service"
8+
9+
# Stop and disable the service
10+
systemctl stop banking.service
11+
systemctl disable banking.service
12+
13+
# Remove service file
14+
rm -f $SERVICE_PATH
15+
systemctl daemon-reload
16+
17+
# Remove installation directory
18+
rm -rf $INSTALL_DIR
19+
20+
# Remove persistent data file
21+
rm -f /var/log/account_data.json
22+
23+
echo "Banking Transaction Simulator uninstalled successfully!"

0 commit comments

Comments
 (0)