diff --git a/.gitignore b/.gitignore index c749c34..98fa4a9 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ scratch.* chrony_statistics.log conf-* log_backup_* -influxdata-archive.key \ No newline at end of file +influxdata-archive.key +status.txt \ No newline at end of file diff --git a/installer1.sh b/installer1.sh index d68e0d5..c81c126 100644 --- a/installer1.sh +++ b/installer1.sh @@ -6,8 +6,8 @@ echo "Updating software lists..." sudo apt update 1>/dev/null 2>/dev/null # updoot this -echo "Updating this repo..." -git pull 1>/dev/null 2>/dev/null +# echo "Updating this repo..." +# git pull 1>/dev/null 2>/dev/null # rpi-update echo "Updating Raspberry Pi firmware..." diff --git a/installer2.sh b/installer2.sh index 53b6bde..63a0e28 100644 --- a/installer2.sh +++ b/installer2.sh @@ -1,8 +1,8 @@ #!/bin/bash set -e -echo "Updating this repo..." -git pull 1>/dev/null 2>/dev/null +# echo "Updating this repo..." +# git pull 1>/dev/null 2>/dev/null # updoot echo "Updating software lists..." diff --git a/installer3.sh b/installer3.sh index a7e1bd0..637cfb0 100644 --- a/installer3.sh +++ b/installer3.sh @@ -1,8 +1,8 @@ #!/bin/bash # set -e -echo "Updating this repo..." -git pull 1>/dev/null 2>/dev/null +# echo "Updating this repo..." +# git pull 1>/dev/null 2>/dev/null # grafana repo and install echo "Add Grafana repo..." diff --git a/installer4.sh b/installer4.sh index 0080a1a..cc2c656 100644 --- a/installer4.sh +++ b/installer4.sh @@ -1,8 +1,8 @@ #!/bin/bash set -e -echo "Updating this repo..." -git pull 1>/dev/null 2>/dev/null +# echo "Updating this repo..." +# git pull 1>/dev/null 2>/dev/null # reconfigure to normal mode echo "Starting configure script..." diff --git a/installer_auto.sh b/installer_auto.sh index 90648ed..2f62530 100644 --- a/installer_auto.sh +++ b/installer_auto.sh @@ -2,9 +2,16 @@ # usage ## curl https://raw.githubusercontent.com/PrincessPi3/Precision-Timekeeping-Fuckery/refs/heads/main/installer_auto.sh | sudo $SHELL set -e + +if [ ! -z $SUDO_USER ]; then + username=$SUDO_USER +else + username=$USER +fi + sudo apt update sudo apt install git -y -cd $HOME +cd /home/$username git clone https://github.com/PrincessPi3/Precision-Timekeeping-Fuckery.git -cd Precision-Timekeeping-Fuckery +cd /home/$username/Precision-Timekeeping-Fuckery bash installer1.sh \ No newline at end of file