Replace gogs by gitea
This commit is contained in:
parent
6476e9b647
commit
8ec8a35cb3
|
@ -71,16 +71,16 @@ ynh_add_systemd_config
|
|||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
config_nginx
|
||||
|
||||
# Install Gogs
|
||||
# Install gitea
|
||||
cp -a ../conf/app.ini $final_path
|
||||
cd $final_path
|
||||
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
|
||||
|
||||
# Configure gogs with app.ini file
|
||||
# Configure gitea with app.ini file
|
||||
config_gitea
|
||||
|
||||
# Start gogs for building mysql tables
|
||||
# Start gitea for building mysql tables
|
||||
systemctl start "$app".service
|
||||
|
||||
# Set permissions
|
||||
|
@ -107,11 +107,11 @@ then
|
|||
ynh_app_setting_set $app unprotected_uris "/"
|
||||
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"
|
||||
|
||||
# Configure logrotate
|
||||
ynh_use_logrotate "/var/log/$app"
|
||||
|
||||
# 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"
|
||||
|
|
Loading…
Reference in New Issue