update start srcipts in manage_scripts.sh
This commit is contained in:
+8
-2
@@ -39,8 +39,14 @@ start_scripts() {
|
|||||||
log "Starting scripts..."
|
log "Starting scripts..."
|
||||||
cd "$BASE_DIR"
|
cd "$BASE_DIR"
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
python3 foodie_automator_reddit.py & python3 foodie_automator_rss.py & python3 foodie_automator_google.py &
|
# Find all foodie_automator_*.py scripts and start them
|
||||||
log "Scripts started."
|
for script in foodie_automator_*.py; do
|
||||||
|
if [ -f "$script" ]; then
|
||||||
|
log "Starting $script..."
|
||||||
|
nohup python3 "$script" >> "${script%.py}.log" 2>&1 &
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
log "All scripts started."
|
||||||
}
|
}
|
||||||
|
|
||||||
# Update dependencies
|
# Update dependencies
|
||||||
|
|||||||
Reference in New Issue
Block a user