Bladeren bron

更新 'coffeesystem.sh'

fatwolf 2 jaren geleden
bovenliggende
commit
c1fc7bb3db
1 gewijzigde bestanden met toevoegingen van 5 en 5 verwijderingen
  1. 5 5
      coffeesystem.sh

+ 5 - 5
coffeesystem.sh

@@ -3,7 +3,6 @@
 #Item1 Common Command
 
 step1_t1=$(date +"%S")
-sudo apt-get install dialog -y
 sudo apt-get install python3.8 -y
 sudo apt-get install python3-pip -y
 sudo pip3 install cryptography==3.3.2
@@ -105,21 +104,22 @@ sudo chmod +x /etc/rc.local
 
 sudo systemctl restart rc-local.service
 step4_t2=$(date +"%S")
-
 echo 'Item4 Watchdog 安裝時間:' $((step4_t2-step4_t1)) '秒' >>/home/使用者/test.log
-
 echo "watchdog file done"
 
 #Item5 Git Server
 step5_t1=$(date +"%S")
 sudo apt-get install golang -y
 cd /home/使用者;pwd;git clone http://60.250.156.230:3000/fatwolf/gogsfile.git /home/使用者/gogs;sudo mv /home/使用者/gogs/gogs_0.12.3_linux_amd64.tar.gz /home/使用者/;sudo rm -rf /home/使用者/gogs/;tar -C /home/使用者 -zxvf gogs_0.12.3_linux_amd64.tar.gz
+username=使用者;sudo echo 'gogs = "sudo /home/'$username'/gogs/./gogs web"'>>/etc/proc-wdtd.conf
+cd /home/使用者;pwd;sudo git clone http://60.250.156.230:3000/Automatic_build_system/git_mysql.git /home/使用者/git_sql/
+mysql -u root -pGold@53743001 < "/home/使用者/git_sql/git.sql";
 
-step5_t2=$(date +"%S")
 
+step5_t2=$(date +"%S")
 echo 'Item5 Git Server 安裝時間:' $((step5_t2-step5_t1)) '秒' >>/home/使用者/test.log
 echo "Git Server done"
-# ./gogs web
+
 
 #Item6 Python packegs Library
 step6_t1=$(date +"%S")