Replace gogs by gitea

This commit is contained in:
Rafi59 2018-05-09 17:59:23 +02:00 committed by GitHub
parent 6476e9b647
commit 8ec8a35cb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -71,16 +71,16 @@ ynh_add_systemd_config
# Modify Nginx configuration file and copy it to Nginx conf directory # Modify Nginx configuration file and copy it to Nginx conf directory
config_nginx config_nginx
# Install Gogs # Install gitea
cp -a ../conf/app.ini $final_path cp -a ../conf/app.ini $final_path
cd $final_path cd $final_path
wget https://github.com/go-gitea/gitea/releases/download/v1.3.3/gitea-1.3.3-linux-amd64 wget https://github.com/go-gitea/gitea/releases/download/v1.3.3/gitea-1.3.3-linux-amd64
mv gitea-1.3.3-linux-amd64 gitea mv gitea-1.3.3-linux-amd64 gitea
# Configure gogs with app.ini file # Configure gitea with app.ini file
config_gitea config_gitea
# Start gogs for building mysql tables # Start gitea for building mysql tables
systemctl start "$app".service systemctl start "$app".service
# Set permissions # Set permissions
@ -107,11 +107,11 @@ then
ynh_app_setting_set $app unprotected_uris "/" ynh_app_setting_set $app unprotected_uris "/"
fi fi
# Add Gogs to YunoHost's monitored services # Add gitea to YunoHost's monitored services
yunohost service add "$app" --log "/var/log/$app/$app.log" yunohost service add "$app" --log "/var/log/$app/$app.log"
# Configure logrotate # Configure logrotate
ynh_use_logrotate "/var/log/$app" ynh_use_logrotate "/var/log/$app"
# Reload services # Reload services
ynh_check_starting "INFO] Listen: http://0.0.0.0:" "/var/log/$app/gogs.log" ynh_check_starting "INFO] Listen: http://0.0.0.0:" "/var/log/$app/gitea.log"