Răsfoiți Sursa

Update RPi3_4install.sh

assume-breach 3 ani în urmă
părinte
comite
5438aceb47
1 a modificat fișierele cu 14 adăugiri și 11 ștergeri
  1. 14 11
      DoubleVision/RPi3_4install.sh

+ 14 - 11
DoubleVision/RPi3_4install.sh

@@ -5,6 +5,20 @@ if [ "$(id -u)" != "0" ]; then
    exit 1
 fi
 
+git clone --depth 1 --recursive https://github.com/gildas-lormeau/SingleFile.git
+
+chown -R pi:pi SingleFile/
+
+cd SingleFile
+
+npm install
+
+cd cli
+
+chmod +x single-file
+
+cd ../../
+
 sudo apt-get update -y && apt-get upgrade -y
 
 sudo apt install tmux apache2 iptables git npm php dnsmasq apache2 dnsmasq-base python hostapd mdk3 macchanger -y
@@ -31,17 +45,6 @@ cd /etc/apache2/mods-enabled
 
 ln -s ../mods-available/rewrite.load rewrite.load
 
-git clone --depth 1 --recursive https://github.com/gildas-lormeau/SingleFile.git
-
-chown -R pi:pi SingleFile/
-
-cd SingleFile
-
-npm install
-
-cd cli
-
-chmod +x single-file
 
 systemctl disable hostapd
 systemctl disable dnsmasq