automated terminal push
This commit is contained in:
3
provision/installs/cron.bash
Executable file
3
provision/installs/cron.bash
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
apt install -y cron;
|
||||
@@ -1,12 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
##
|
||||
|
||||
echo "##"
|
||||
echo "## launch > python jms client (aventador JMS)"
|
||||
echo "## launch > yankee > downloader node provisioning"
|
||||
echo "##"
|
||||
|
||||
sudo apt update;
|
||||
apt update
|
||||
|
||||
sudo apt install git -y
|
||||
|
||||
@@ -19,3 +17,31 @@ pip install selenium
|
||||
## for rest situations
|
||||
|
||||
pip install requests
|
||||
|
||||
##
|
||||
|
||||
####
|
||||
|
||||
cd /
|
||||
|
||||
git clone https://code.yankee.embanet.online/yankee/yankee-gnome-fire-consumer.git
|
||||
|
||||
chmod 777 yankee-gnome-fire-consumer -R
|
||||
|
||||
cd yankee-gnome-fire-consumer
|
||||
|
||||
chmod +x *.bash
|
||||
|
||||
chmod +x *.sh
|
||||
|
||||
bash provision.bash
|
||||
|
||||
pppwd=`pwd`
|
||||
|
||||
echo " dir / "$pppwd
|
||||
|
||||
##echo "python3 $pppwd/consumer.py" | at now + 1 minutes
|
||||
|
||||
##echo "/yankee/go.sh" | at now + 10 minutes
|
||||
|
||||
####
|
||||
@@ -86,30 +86,11 @@ service ssh restart;
|
||||
|
||||
####
|
||||
|
||||
cd /
|
||||
service cron status
|
||||
|
||||
git clone https://code.yankee.embanet.online/yankee/yankee-gnome-fire-consumer.git
|
||||
|
||||
chmod 777 yankee-gnome-fire-consumer -R
|
||||
|
||||
cd yankee-gnome-fire-consumer
|
||||
|
||||
chmod +x *.bash
|
||||
|
||||
chmod +x *.sh
|
||||
|
||||
bash provision.bash
|
||||
|
||||
pppwd=`pwd`
|
||||
|
||||
echo " dir / "$pppwd
|
||||
|
||||
echo "python3 $pppwd/consumer.py" | at now + 1 minutes
|
||||
|
||||
##echo "/yankee/go.sh" | at now + 10 minutes
|
||||
|
||||
####
|
||||
service cron restart
|
||||
|
||||
service cron status
|
||||
|
||||
####
|
||||
|
||||
Reference in New Issue
Block a user