make install.sh more pretty

This commit is contained in:
Hristo
2024-01-27 23:51:24 +02:00
parent 6b7ce32e3b
commit 7bde03affd

View File

@@ -140,6 +140,12 @@ set_cron(){
set_service(){
printm "Setting systemd service"
printf "How often do you want the script to run in seconds? (default is 120): "
read MIN
if [ -z "$MIN" ]; then
MIN=120
fi
sed -i "s/120/${MIN}/" src/config.py
cwd=$(pwd)
user=$(whoami)
exec_start="${python} ${cwd}/src/rpi-cpu2mqtt.py --service"