diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/autoboot.sh | 2 | ||||
-rwxr-xr-x | scripts/build.sh | 33 | ||||
-rwxr-xr-x | scripts/build_freebsd.sh | 27 | ||||
-rwxr-xr-x | scripts/build_linux64.sh | 27 | ||||
-rwxr-xr-x | scripts/init/openbsd/gogs | 1 |
5 files changed, 1 insertions, 89 deletions
diff --git a/scripts/autoboot.sh b/scripts/autoboot.sh deleted file mode 100755 index eb16d581..00000000 --- a/scripts/autoboot.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -su git -c "/home/git/gogs/scripts/gogs_supervisord.sh restart" diff --git a/scripts/build.sh b/scripts/build.sh deleted file mode 100755 index 53dcdf6a..00000000 --- a/scripts/build.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -outPath=./output - -rm -rf $outPath -mkdir $outPath - -go build ../gogs.go -PLATFORM=$(uname | cut -d _ -f 1) -if [ "$PLATFORM" = "MINGW32" ] || [ "$PLATFORM" = "MINGW64" ] || [ "$PLATFORM" = "CYGWIN" ]; then - GOGS_EXE=gogs.exe -else - GOGS_EXE=gogs -fi -chmod +x $GOGS_EXE -mv $GOGS_EXE $outPath/ - -cp -r ../conf/ $outPath/conf/ -cp -r ../custom/ $outPath/custom/ -cp -r dockerfiles/ $outPath/dockerfiles/ -cp -r ../public/ $outPath/public/ -cp -r ../templates/ $outPath/templates/ -cp ../cert.pem $outPath/ -cp ../CONTRIBUTING.md $outPath/ -cp gogs_supervisord.sh $outPath/ -cp ../key.pem $outPath/ -cp ../LICENSE $outPath/ -cp ../README.md $outPath/ -cp ../README_ZH.md $outPath/ -cp start.bat $outPath/ -cp start.sh $outPath/ -cp ../wercker.yml $outPath/ -cp mysql.sql $outPath/ diff --git a/scripts/build_freebsd.sh b/scripts/build_freebsd.sh deleted file mode 100755 index 9662f776..00000000 --- a/scripts/build_freebsd.sh +++ /dev/null @@ -1,27 +0,0 @@ -outPlattform=freebsd -outArch=amd64 -outPath=./output_${outPlattform}_$outArch - -rm -rf $outPath -mkdir $outPath - -CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../gogs.go -chmod +x gogs -mv gogs $outPath/ - -cp -r ../conf/ $outPath/conf/ -cp -r ../custom/ $outPath/custom/ -cp -r dockerfiles/ $outPath/dockerfiles/ -cp -r ../public/ $outPath/public/ -cp -r ../templates/ $outPath/templates/ -cp ../cert.pem $outPath/ -cp ../CONTRIBUTING.md $outPath/ -cp gogs_supervisord.sh $outPath/ -cp ../key.pem $outPath/ -cp ../LICENSE $outPath/ -cp ../README.md $outPath/ -cp ../README_ZH.md $outPath/ -cp start.bat $outPath/ -cp start.sh $outPath/ -cp ../wercker.yml $outPath/ -cp mysql.sql $outPath/
\ No newline at end of file diff --git a/scripts/build_linux64.sh b/scripts/build_linux64.sh deleted file mode 100755 index a4e73936..00000000 --- a/scripts/build_linux64.sh +++ /dev/null @@ -1,27 +0,0 @@ -outPlattform=linux -outArch=amd64 -outPath=./output_${outPlattform}_$outArch - -rm -rf $outPath -mkdir $outPath - -CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build -buildmode=pie ../gogs.go -chmod +x gogs -mv gogs $outPath/ - -cp -r ../conf/ $outPath/conf/ -cp -r ../custom/ $outPath/custom/ -cp -r dockerfiles/ $outPath/dockerfiles/ -cp -r ../public/ $outPath/public/ -cp -r ../templates/ $outPath/templates/ -cp ../cert.pem $outPath/ -cp ../CONTRIBUTING.md $outPath/ -cp gogs_supervisord.sh $outPath/ -cp ../key.pem $outPath/ -cp ../LICENSE $outPath/ -cp ../README.md $outPath/ -cp ../README_ZH.md $outPath/ -cp start.bat $outPath/ -cp start.sh $outPath/ -cp ../wercker.yml $outPath/ -cp mysql.sql $outPath/
\ No newline at end of file diff --git a/scripts/init/openbsd/gogs b/scripts/init/openbsd/gogs index 95fcf169..7935d687 100755 --- a/scripts/init/openbsd/gogs +++ b/scripts/init/openbsd/gogs @@ -1,6 +1,7 @@ #!/bin/sh # # $OpenBSD$ +# shellcheck disable=SC2034,SC1091,SC2154,SC2086 daemon="/home/git/gogs/gogs" daemon_user="git" |