Search
โšก

06-30

edgeAIbox1.sh

#!/bin/bash sudo apt clean sudo rm -rf /var/lib/apt/lists/* sudo apt updateAcquire::CompressionTypes::Order::=gz sudo apt list --upgradable # check zip_file str1=`ls -lh | grep SODA_PKG.zip` if [[ "${str}" == *SODA_PKG* ]]; then echo "It contains 'SODA_PKG.zip'" fi cd /opt && sudo rm -rf edgeAIbox sudo git clone http://uzziel.lee:abcd1234@alooh.shop:27990/scm/ap/package_edgeaibox_agx.git edgeAIbox -b LEO sudo chown -R alooh:alooh edgeAIbox sudo sh /opt/edgeAIbox/utils/install_package.sh sudo sh /opt/edgeAIbox/utils/setting.sh ./edgeAIbox2.sh
Bash

edgeAIbox2.sh

#!/bin/bash docker login registry.alooh.shop -u uzziel -p abcd1234 sh /opt/edgeAIbox/utils/modules/afterdocker.sh sudo /opt/edgeAIbox/utils/setting_service_stop.sh # set device_name echo "Enter the device number ECVH040000(xx): " read name sudo sh /opt/edgeAIbox/utils/setting_fin.sh ECVH040000${name} # check crontab list str=`sudo crontab -l` if [ "${str}" == *no crontab for root* ]; then echo "It contains 'SODA_PKG.zip'" fi
Bash