Explorar el Código

test reset rc.local concluant, mise en prod

master
heuzef hace 5 años
padre
commit
21f03dc959
Se han modificado 2 ficheros con 4 adiciones y 10 borrados
  1. +4
    -2
      install.sh
  2. +0
    -8
      scripts/rclocalreset.sh

+ 4
- 2
install.sh Ver fichero

@@ -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 Ver fichero

@@ -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

Cargando…
Cancelar
Guardar