1
0
mirror of https://gitlab.com/packaging/gitea synced 2024-12-18 16:13:44 +00:00

make sure gitea is an executable

This commit is contained in:
morph027 2020-06-04 19:31:49 +02:00
parent 2dba627301
commit d59203622e
No known key found for this signature in database
GPG Key ID: BF17A54BB873BE58

View File

@ -20,6 +20,7 @@ package:
- gem specific_install https://github.com/root360/fpm.git all_fixes
- mkdir -p "${CI_PROJECT_DIR}/package_root/usr/bin"
- curl -sL -o "${CI_PROJECT_DIR}/package_root/usr/bin/gitea" "https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64"
- file --mime-type --brief "${CI_PROJECT_DIR}/package_root/usr/bin/gitea" | grep -q 'application/x-executable'
- chmod +x "${CI_PROJECT_DIR}/package_root/usr/bin/gitea"
- fpm
--input-type dir