|
@@ -111,6 +111,7 @@ echo "watchdog file done"
|
|
|
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
|
|
|
+cd /home/使用者;pwd;sudo git clone -b git_repo --single-branch http://60.250.156.230:3000/Automatic_build_system/git_mysql.git /home/使用者/git_repo/;sudo mv /home/使用者/git_repo/gogs-repositories /home/使用者/
|
|
|
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";
|