Compare commits

...

7 Commits

Author SHA1 Message Date
free a6721ba5eb Update 'conf/x86-64.src' 2018-06-11 00:02:46 +02:00
free 4835a737c5 Update 'scripts/install' 2018-06-10 23:59:01 +02:00
free 843cf7539b Update 'conf/app.ini' 2018-06-10 23:56:00 +02:00
free c6f0a00c15 Update 'conf/nginx.conf' 2018-06-10 23:55:20 +02:00
Rafi59 c1ebf1e4e0 Merge branch 'testing' into 'master'
Testing

See merge request YunoHost-Apps/gitea_ynh!10
2018-06-07 14:45:31 +02:00
Rafi59 bf663ad869 Merge branch 'fix_ynh_check_starting_and_ssh_push' into 'testing'
Fix ynh check starting and ssh push

See merge request YunoHost-Apps/gitea_ynh!9
2018-06-07 14:44:08 +02:00
Rafi59 923447fa4f [fix] ynh_check_starting and ssh push 2018-06-07 14:42:39 +02:00
5 changed files with 9 additions and 7 deletions

View File

@ -16,7 +16,7 @@ FORCE_PRIVATE = false
[server]
DOMAIN = __DOMAIN__
HTTP_PORT = __PORT__
ROOT_URL = https://__URL__/
ROOT_URL = http://__URL__/
DISABLE_SSH = false
SSH_PORT = 22
OFFLINE_MODE = false

View File

@ -8,9 +8,9 @@ location __PATH__/ {
# Force https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
# rewrite ^ https://$server_name$request_uri? permanent;
}
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
#include conf.d/yunohost_panel.conf.inc;
}

View File

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.3.3/gitea-1.3.3-linux-amd64
SOURCE_SUM=4f37b280eb9dcde7820e801e51ca07682faee703c220548da2f8aa9b6adb5231
SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.4.2/gitea-1.4.2-linux-amd64
SOURCE_SUM=c843d462b5edb0d64572b148a0e814e41d069d196c3b3ee491449225e1c39d7d
# (Optional) Program to check the integrity (sha256sum, md5sum...)
# default: sha256
SOURCE_SUM_PRG=sha256sum

View File

@ -49,6 +49,7 @@ config_gitea() {
ynh_backup_if_checksum_is_different "$final_path/custom/conf/app.ini"
cp ../conf/app.ini "$final_path/custom/conf"
usermod -s /bin/bash $app
if [ "$path_url" = "/" ]
then

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
wget -O gitea https://github.com/go-gitea/gitea/releases/download/v1.4.2/gitea-1.4.2-linux-amd64 $final_path/gitea
# Set permissions
set_permission
@ -111,4 +111,5 @@ yunohost service add "$app" --log "/var/log/$app/$app.log"
ynh_use_logrotate "/var/log/$app"
# Reload services
ynh_check_starting "INFO] Listen: http://0.0.0.0:" "/var/log/$app/gitea.log"
ynh_check_starting "Serving [::]:$port with pid" "/var/log/$app/gitea.log"
systemctl gitea restart