diff --git a/gitbucket/InstallGitBucket.sh b/gitbucket/InstallGitBucket.sh new file mode 100755 index 0000000..99bbb39 --- /dev/null +++ b/gitbucket/InstallGitBucket.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +if [ ! -f gitbucket.war ] +then + wget https://github.com/gitbucket/gitbucket/releases/download/4.32.0/gitbucket.war +fi + +openssl dgst -sha256 gitbucket.war +echo "Compare the SHA256 with: 7150e46d20a2a6febfaca53fb2ca796f8729e109d538daa8182dcc42522efee2" + + +# java -jar gitbucket.war --port=8090 + + +sudo cp gitbucket.service /etc/systemd/system/gitbucket.service +sudo systemctl enable gitbucket.service +sudo systemctl start gitbucket.service + + + + diff --git a/gitbucket/InstallGitBucket.sh b/gitbucket/InstallGitBucket.sh new file mode 100755 index 0000000..99bbb39 --- /dev/null +++ b/gitbucket/InstallGitBucket.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +if [ ! -f gitbucket.war ] +then + wget https://github.com/gitbucket/gitbucket/releases/download/4.32.0/gitbucket.war +fi + +openssl dgst -sha256 gitbucket.war +echo "Compare the SHA256 with: 7150e46d20a2a6febfaca53fb2ca796f8729e109d538daa8182dcc42522efee2" + + +# java -jar gitbucket.war --port=8090 + + +sudo cp gitbucket.service /etc/systemd/system/gitbucket.service +sudo systemctl enable gitbucket.service +sudo systemctl start gitbucket.service + + + + diff --git a/gitbucket/gitbucket.service b/gitbucket/gitbucket.service new file mode 100755 index 0000000..4eca822 --- /dev/null +++ b/gitbucket/gitbucket.service @@ -0,0 +1,15 @@ +[Unit] +Description=Gitbucket Server +After=syslog.target +After=network.target + +[Service] +WorkingDirectory=/media/Data/Repositories +User=jenkins +ExecStart=/usr/bin/java -jar /media/Data/Repositories/gitbucket.war --port=8090 --gitbucket.home=/media/Data/Repositories +Restart=on-failure +RestartSec=10 + +[Install] +WantedBy=multi-user.target +