mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-23 11:31:35 +01:00
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
|
# 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"
|
||||||
|
Loading…
Reference in New Issue
Block a user