crear el directorio de archivos corruptos
This commit is contained in:
parent
dd48575a1b
commit
c29f1dc07e
1 changed files with 9 additions and 8 deletions
17
install.sh
17
install.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
files="data_gen.sh monitor.sh register.sh uninstall.sh monitor.web bin functions counter"
|
files="data_gen.sh monitor.sh register.sh uninstall.sh monitor.web bin functions counter"
|
||||||
config=nodemecu.conf.sample
|
config=nodemecu.conf.sample
|
||||||
source $config
|
source $config
|
||||||
|
|
||||||
echo -e "1. Instalando dependencias"
|
echo -e "1. Instalando dependencias"
|
||||||
|
|
||||||
|
@ -10,18 +10,19 @@ sudo pip install pyserial
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
|
||||||
# Estructura de directorios
|
# Estructura de directorios
|
||||||
echo -e "2. Creando directorios y copiando archivos"
|
echo -e "2. Creando directorios y copiando archivos"
|
||||||
|
|
||||||
sudo mkdir -vp $install_dir/archives/historical
|
sudo mkdir -vp $install_dir/archives/historical
|
||||||
sudo mkdir -vp $install_dir/archives/logs
|
sudo mkdir -vp $install_dir/archives/logs
|
||||||
sudo mkdir $historical
|
sudo mkdir $historical
|
||||||
sudo mkdir $stack
|
sudo mkdir $stack
|
||||||
echo ""
|
sudo mkdir $corrupt
|
||||||
sudo cp -vr $files $install_dir
|
echo ""
|
||||||
|
sudo cp -vr $files $install_dir
|
||||||
sudo cp -v $config /etc/nodemecu.conf
|
sudo cp -v $config /etc/nodemecu.conf
|
||||||
sudo ln -s $install_dir/bin/nodemecu /usr/bin/nodemecu
|
sudo ln -s $install_dir/bin/nodemecu /usr/bin/nodemecu
|
||||||
sudo touch $log
|
sudo touch $log
|
||||||
echo ""
|
echo ""
|
||||||
echo "3. Configurando systemd"
|
echo "3. Configurando systemd"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue