From 7bde03affd5aad871aa3afe4d22cb11c1923c72a Mon Sep 17 00:00:00 2001 From: Hristo Date: Sat, 27 Jan 2024 23:51:24 +0200 Subject: [PATCH] make install.sh more pretty --- install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.sh b/install.sh index c453bf6..ae994e3 100755 --- a/install.sh +++ b/install.sh @@ -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"