Files
pyShelf/pyshelf.sh
th3r00t f59d6530a9 Created install.sh and pyshelf.sh
Also refactored methods to work as a zipapp
2025-08-08 21:11:51 +00:00

18 lines
525 B
Bash
Executable File
Vendored

#!/usr/bin/sh
# This script is used to run the pyshelf application.
# It sets up the environment and runs the main script.
# first we need to activate the virtual environment
if [ -d "/etc/pyShelf/.venv" ]; then
source /etc/pyShelf/.venv/bin/activate
else
echo "Virtual environment not found. Please create it first."
exit 1
fi
# then we need to run the main script
if [ -f "release/pyshelf" ]; then
sudo -u pyshelf /etc/pyShelf/release/pyshelf
else
echo "Main script not found. Please check the directory."
exit 1
fi