update
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user