Skip to content

Commit

Permalink
fix: Change direct path to configure option
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Schwab committed Jan 26, 2022
1 parent f8b2f22 commit b047e1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cron/cron.05min
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

# Will be executed as user "loxberry".

enabled=$(awk -F "=" '/ENABLED/ {print $2}' /opt/loxberry/config/plugins/p1decrypter/p1decrypter.cfg)
enabled=$(awk -F "=" '/ENABLED/ {print $2}' REPLACELBPCONFIGDIR/p1decrypter.cfg)

if ! pgrep -f p1decrypter.py >/dev/null && [[ $enabled == "1" || $1 == "1" ]] && [ -e /opt/loxberry/bin/plugins/p1decrypter/p1decrypter.py ]
if ! pgrep -f p1decrypter.py >/dev/null && [[ $enabled == "1" || $1 == "1" ]] && [ -e REPLACELBPBINDIR/p1decrypter.py ]
then
/usr/bin/python3 /opt/loxberry/bin/plugins/p1decrypter/p1decrypter.py KEY --logfile=/opt/loxberry/log/plugins/p1decrypter/p1decrypter.log --configfile=/opt/loxberry/config/plugins/p1decrypter/p1decrypter.cfg >> /opt/loxberry/log/plugins/p1decrypter/p1decrypter.log 2>&1
/usr/bin/python3 REPLACELBPBINDIR/p1decrypter.py KEY --logfile=REPLACELBPLOGDIR/p1decrypter.log --configfile=REPLACELBPCONFIGDIR/p1decrypter.cfg >> REPLACELBPLOGDIR/p1decrypter.log 2>&1
fi

0 comments on commit b047e1c

Please sign in to comment.