This commit is contained in:
hjelev
2022-03-20 22:12:17 +02:00
parent cea4ab7604
commit 294c53c2de

View File

@@ -47,8 +47,7 @@ print_yellow(){
} }
check_and_install_pip(){ check_and_install_pip(){
cwd=$(pwd)
#python=$(which python)
pip_ver=$(${python} -m pip --version 2>&1); pip_ver=$(${python} -m pip --version 2>&1);
if [[ "$pip_ver" == *"No"* ]]; then if [[ "$pip_ver" == *"No"* ]]; then
echo "- Pip is not installed, installing it." echo "- Pip is not installed, installing it."
@@ -99,7 +98,7 @@ update_config(){
set_cron(){ set_cron(){
printm "Setting Cronjob" printm "Setting Cronjob"
cwd=$(pwd)
crontab -l > tempcron crontab -l > tempcron
if grep -q rpi-cpu2mqtt.py tempcron; then if grep -q rpi-cpu2mqtt.py tempcron; then
cronfound=$(grep rpi-cpu2mqtt.py tempcron) cronfound=$(grep rpi-cpu2mqtt.py tempcron)