Quellcode durchsuchen

test reset rc.local concluant, mise en prod

master
heuzef vor 5 Jahren
Ursprung
Commit
21f03dc959
2 geänderte Dateien mit 4 neuen und 10 gelöschten Zeilen
  1. +4
    -2
      install.sh
  2. +0
    -8
      scripts/rclocalreset.sh

+ 4
- 2
install.sh Datei anzeigen

@@ -139,8 +139,10 @@ sed -i "s/#allogg_psw#/$allogg_psw/g" /var/www/html/ui/index.php

# Lancement automatique du script de demarrage
cp -a /etc/rc.local /etc/rc.local.bak
sed -i '1 i #!/bin/sh -e' /etc/rc.local
sed -i '$ d' /etc/rc.local
echo "#!/bin/sh -e" > /etc/rc.local
echo "#" >> /etc/rc.local
echo "# rc.local" >> /etc/rc.local
echo "" >> /etc/rc.local
echo "/bin/bash /var/www/html/scripts/boot.sh &" >> /etc/rc.local
echo "" >> /etc/rc.local
echo "exit 0" >> /etc/rc.local


+ 0
- 8
scripts/rclocalreset.sh Datei anzeigen

@@ -1,8 +0,0 @@
cp -a /etc/rc.local /etc/rc.local.bak
echo "#!/bin/sh -e" > /etc/rc.local
echo "#" >> /etc/rc.local
echo "# rc.local" >> /etc/rc.local
echo "" >> /etc/rc.local
echo "/bin/bash /var/www/html/scripts/boot.sh &" >> /etc/rc.local
echo "" >> /etc/rc.local
echo "exit 0" >> /etc/rc.local

Laden…
Abbrechen
Speichern