From ed7c919201e37a1b7508ce0a4d20dd67f578cf90 Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Mon, 2 Oct 2023 16:25:15 +1100 Subject: [PATCH] Docs + on HW install v0.2 --- docs/HW_INSTALL.md | 8 ++------ {back => install}/install.sh | 2 -- 2 files changed, 2 insertions(+), 8 deletions(-) rename {back => install}/install.sh (98%) diff --git a/docs/HW_INSTALL.md b/docs/HW_INSTALL.md index 3f23a6e1..d093ba49 100644 --- a/docs/HW_INSTALL.md +++ b/docs/HW_INSTALL.md @@ -10,18 +10,14 @@ PiAlert will be installed in `home/pi/pialert/` and run on port number `20211`. ## CURL ```bash -curl -o install.sh https://raw.githubusercontent.com/jokob-sk/Pi.Alert/main/install/install.sh -chmod +x install.sh -./install.sh +curl -o install.sh https://raw.githubusercontent.com/jokob-sk/Pi.Alert/main/install/install.sh && sudo chmod +x install.sh && sudo ./install.sh ``` ## WGET ```bash -wget https://raw.githubusercontent.com/jokob-sk/Pi.Alert/main/install/install.sh -chmod +x install.sh -./install.sh +wget https://raw.githubusercontent.com/jokob-sk/Pi.Alert/main/install/install.sh -O install.sh && sudo chmod +x install.sh && sudo ./install.sh ``` These commands will download the `install.sh` script from the GitHub repository, make it executable with `chmod`, and then run it using `./install.sh`. diff --git a/back/install.sh b/install/install.sh similarity index 98% rename from back/install.sh rename to install/install.sh index 8471ba20..4f88dd75 100755 --- a/back/install.sh +++ b/install/install.sh @@ -31,9 +31,7 @@ apt-get install -y \ sudo apt-get install -y \ nginx nginx-core mtr mtr-tiny php-fpm php7.4-fpm -sudo apt install php-cli php8.2 php8.2-fpm -y sudo apt install php-cli php7.4 php7.4-fpm -y - sudo apt install php7.4-sqlite3 -y sudo phpenmod -v 7.4 sqlite3