venv name update
This commit is contained in:
11
install.sh
11
install.sh
@@ -66,15 +66,19 @@ create_venv(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Create a virtual environment
|
# Create a virtual environment
|
||||||
${python} -m venv env
|
${python} -m venv rpi_mon_env
|
||||||
|
|
||||||
# Activate the virtual environment
|
# Activate the virtual environment
|
||||||
source env/bin/activate
|
source rpi_mon_env/bin/activate
|
||||||
|
python=$(which python)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install_requirements(){
|
install_requirements(){
|
||||||
printm "Installing requirements"
|
printm "Installing requirements"
|
||||||
$pip_run install -r requirements.txt
|
$pip_run install -r requirements.txt
|
||||||
|
# Deactivate the virtual environment
|
||||||
|
deactivate
|
||||||
}
|
}
|
||||||
|
|
||||||
update_config(){
|
update_config(){
|
||||||
@@ -112,9 +116,6 @@ update_config(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
set_cron(){
|
set_cron(){
|
||||||
python=$(which python)
|
|
||||||
# Deactivate the virtual environment
|
|
||||||
deactivate
|
|
||||||
printm "Setting Cronjob"
|
printm "Setting Cronjob"
|
||||||
cwd=$(pwd)
|
cwd=$(pwd)
|
||||||
crontab -l > tempcron
|
crontab -l > tempcron
|
||||||
|
|||||||
Reference in New Issue
Block a user