Compare commits

...

5 Commits

Author SHA1 Message Date
Rafi59 c9f5c10ddb [fix] Name of i386 2018-06-07 17:30:55 +02:00
Rafi59 20bf330dfe [enh] Add support for other architectures. 2018-06-07 17:27:26 +02:00
Rafi59 c64abee4ef Replace GitHub by Framagit in README.md 2018-06-07 16:56:23 +02:00
Rafi59 47b1cd322c Merge branch 'new-readme' into 'testing'
New readme

See merge request YunoHost-Apps/gitea_ynh!8
2018-06-07 16:53:03 +02:00
Rafi59 c4f6a7b89d New README 2018-06-07 13:10:43 +02:00
3 changed files with 22 additions and 7 deletions

View File

@ -5,22 +5,21 @@ Gitea is a fork of Gogs a self-hosted Git service written in Go. Alternative to
[![Integration level](https://dash.yunohost.org/integration/gitea.svg)](https://ci-apps.yunohost.org/jenkins/job/gitea%20%28Community%29/lastBuild/consoleFull)
[![Build Status](https://srvmaison.fr.nf/jenkins/job/gitea%20(Community)%20stable/badge/icon)](https://srvmaison.fr.nf/jenkins/job/gitea%20(Community)%20stable/)
[![Install Gitea with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=gitea)
![](https://gitea.io/images/screenshot.png)
## Requirements
A functional instance of [YunoHost](https://yunohost.org)
## Installation
From the command-line:
`sudo yunohost app install https://github.com/YunoHost-Apps/gitea_ynh`
`sudo yunohost app install https://framagit.org/YunoHost-Apps/gitea_ynh`
## Upgrade
From the command-line:
`sudo yunohost app upgrade Gitea -u https://github.com/YunoHost-Apps/gogs_ynh gogs`
`sudo yunohost app upgrade Gitea -u https://framagit.org/YunoHost-Apps/gitea_ynh gitea`
## Notes on SSH usage
If you want to use Gitea with ssh and be able to pull/push with you ssh key, your ssh daemon must be properly configured to use private/public keys. Here is a sample configuration of `/etc/ssh/sshd_config` that works with Gitea:
@ -47,7 +46,7 @@ Architecture: this package is compatible with amd64, i386 and arm. The package w
## Issue
Any issue is welcome here : https://github.com/YunoHost-Apps/gitea_ynh/issues
Any issue is welcome here : https://framagit.org/YunoHost-Apps/gitea_ynh/issues
## License
Gitea is published under the MIT License:

View File

@ -28,6 +28,21 @@ fi
# DEFINE ALL COMMON FONCTIONS
#=================================================
get_source() {
if [ "$architecture" = 'x86-64' ]
then
wget -O gitea https://dl.gitea.io/gitea/1.4.2/gitea-1.4.2-linux-amd64 $final_path
fi
if [ "$architecture" = 'i386' ]
then
wget -O gitea https://dl.gitea.io/gitea/1.4.2/gitea-1.4.2-linux-386 $final_path
fi
if [ "$architecture" = 'arm' ]
then
wget -O gitea https://dl.gitea.io/gitea/1.4.2/gitea-1.4.2-linux-arm-7 $final_path
fi
}
create_dir() {
mkdir -p "$final_path/data"
mkdir -p "$final_path/custom/conf"

View File

@ -75,7 +75,7 @@ config_nginx
config_gitea
# Install gitea
wget -O gitea https://github.com/go-gitea/gitea/releases/download/v1.3.3/gitea-1.3.3-linux-amd64 $final_path/gitea
get_source $architecture
# Set permissions
set_permission
@ -112,4 +112,5 @@ ynh_use_logrotate "/var/log/$app"
# Reload services
ynh_check_starting "Serving [::]:$port with pid" "/var/log/$app/gitea.log"
systemctl gitea restart
systemctl gitea restart
systemctl nginx reload