installer and systemd service added

This commit is contained in:
Hash Borgir
2024-02-13 16:39:09 -07:00
parent 8c23deb13b
commit 976f806397
6 changed files with 173 additions and 52 deletions

17
start-funguy.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
# Function to handle errors
handle_error() {
echo "Error: $1"
exit 1
}
# Load Python virtual environment
source venv/bin/activate || { echo "Error: Failed to load Python virtual environment."; exit 1; }
# Get python path
python=$(which python)
# Run funguy.py
$python funguy.py || { echo "Error: Failed to execute funguy.py."; exit 1; }