fatwolf пре 2 година
родитељ
комит
d786d94594
1 измењених фајлова са 27 додато и 0 уклоњено
  1. 27 0
      item5.sh

+ 27 - 0
item5.sh

@@ -0,0 +1,27 @@
+#!/bin/bash 
+
+#Item5 Git Server
+sudo apt-get install golang -y
+cd /home/使用者;pwd;git clone http://60.250.156.230:3000/fatwolf/gogsfile.git /home/使用者/gogsfile;sudo mv /home/使用者/gogsfile/gogs_0.12.3_linux_amd64.tar.gz /home/使用者/;sudo rm -rf /home/使用者/gogsfile/;tar -C /home/使用者 -zxvf gogs_0.12.3_linux_amd64.tar.gz;sudo rm -rf /home/使用者/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/使用者/gitsqlfile/
+mysql -u root -pGold@53743001 < "/home/使用者/gitsqlfile/git.sql";
+sudo rm -rf /home/使用者/gitsqlfile/
+cd /home/使用者;pwd;sudo git clone -b git_repo --single-branch http://60.250.156.230:3000/Automatic_build_system/git_mysql.git /home/使用者/gitmysql/
+cd /home/使用者/gitmysql/;pwd;sudo mv /home/使用者/gitmysql/gogs.tar.gz /home/使用者/;sudo mv /home/使用者/gitmysql/repo.tar.gz /home/使用者/
+cd /home/使用者;pwd;sudo tar -zxvf /home/使用者/gogs.tar.gz;sudo tar -zxvf /home/使用者/repo.tar.gz ;sudo mv /home/使用者/gitmysql/app.ini /home/使用者/gogs/custom/conf/
+sudo rm -rf /home/使用者/gitmysql;sudo rm -rf /home/使用者/gogs.tar.gz;sudo rm -rf /home/使用者/repo.tar.gz;sudo rm -rf /home/使用者/gitmysql
+cd /home/使用者/gogs/custom/conf/;pwd;sed -i "s/使_用_者/使用者/g" app.ini
+sudo git config --global --add safe.directory /home/使用者/gogs-repositories/admin1/automatically_install_files.git
+sudo git config --global --add safe.directory /home/使用者/gogs-repositories/admin1/bbend-test-jwt.git
+sudo git config --global --add safe.directory /home/使用者/gogs-repositories/admin1/coffee_mysql.git
+sudo git config --global --add safe.directory /home/使用者/gogs-repositories/admin1/coffeeproject.git
+sudo git config --global --add safe.directory /home/使用者/gogs-repositories/admin1/git_mysql.git
+sudo git config --global --add safe.directory /home/使用者/gogs-repositories/admin1/gogsfile.git
+sudo git config --global --add safe.directory /home/使用者/gogs-repositories/admin1/mqtt_server_setting.git
+sudo git config --global --add safe.directory /home/使用者/gogs-repositories/admin1/proc.git
+sudo git config --global --add safe.directory /home/使用者/gogs-repositories/admin1/sh.git
+
+echo "Git Server done"
+
+