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
|
||||
files="data_gen.sh monitor.sh register.sh uninstall.sh monitor.web bin functions counter"
|
||||
config=nodemecu.conf.sample
|
||||
source $config
|
||||
source $config
|
||||
|
||||
echo -e "1. Instalando dependencias"
|
||||
|
||||
|
@ -10,18 +10,19 @@ sudo pip install pyserial
|
|||
echo ""
|
||||
|
||||
|
||||
# Estructura de directorios
|
||||
echo -e "2. Creando directorios y copiando archivos"
|
||||
# Estructura de directorios
|
||||
echo -e "2. Creando directorios y copiando archivos"
|
||||
|
||||
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 $stack
|
||||
echo ""
|
||||
sudo cp -vr $files $install_dir
|
||||
sudo mkdir $corrupt
|
||||
echo ""
|
||||
sudo cp -vr $files $install_dir
|
||||
sudo cp -v $config /etc/nodemecu.conf
|
||||
sudo ln -s $install_dir/bin/nodemecu /usr/bin/nodemecu
|
||||
sudo touch $log
|
||||
sudo ln -s $install_dir/bin/nodemecu /usr/bin/nodemecu
|
||||
sudo touch $log
|
||||
echo ""
|
||||
echo "3. Configurando systemd"
|
||||
|
||||
|
|
Loading…
Reference in a new issue