run mautic
unknown
plain_text
5 months ago
954 B
2
Indexable
!/bin/bash USER=julienguyader printf "Starting metrics script!\n" printf "Removing previous database…\n" rm -rf /home/$USER/projets/vates/www-xo/server/customerdb printf "Copy the latest DB from www-xo…\n" scp xo-www@www-xo.gpn.vates.fr:/tmp/customerdb.tar /home/$USER/projets/vates/www-xo/server/ printf "Extract the DB…\n" tar -xf /home/$USER/projets/vates/www-xo/server/customerdb.tar -C /home/$USER/projets/vates/www-xo/server/ printf "Preparing the folder…\n" mkdir -p /home/$USER/projets/vates/www-xo/server/metrics/Data rm -rf /home/$USER/projets/vates/www-xo/server/metrics/Data/* # Scripts to extract data to csv files in a folder printf "Accounts extraction…\n" /home/$USER/projets/vates/www-xo/server/mautic/mautic.js /home/$USER/www-xo/server/mautic/Data # Pushing the whole folder to ES #printf "Pushing everything to ES…\n" #/home/$USER/projets/vates/www-xo/server/metrics/csvToES.js /home/$USER/www-xo/server/mautic/Data
Editor is loading...
Leave a Comment