Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions run_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,10 @@ echo "Starting terminal service..."
# Check if app is running with sudo
if [ "$EUID" -eq 0 ]; then
echo "Running in production mode with sudo..."
# Set DEV_MODE to False in samba_utils.py
sed -i 's/DEV_MODE = True/DEV_MODE = False/g' app/samba_utils.py
export SAMBA_MANAGER_DEV_MODE=0
else
echo "Running in development mode..."
# Set DEV_MODE to True in samba_utils.py
sed -i 's/DEV_MODE = False/DEV_MODE = True/g' app/samba_utils.py
export SAMBA_MANAGER_DEV_MODE=1
fi

# Run the application
Expand Down
Loading