mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-23 11:31:35 +01:00
Fixes:
* use ynh_setup_source instead of wget * do not fait on remove
This commit is contained in:
parent
c1ebf1e4e0
commit
71ca75ae63
@ -75,7 +75,7 @@ config_nginx
|
|||||||
config_gitea
|
config_gitea
|
||||||
|
|
||||||
# Install 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
|
ynh_setup_source $final_path $architecture
|
||||||
|
|
||||||
# Set permissions
|
# Set permissions
|
||||||
set_permission
|
set_permission
|
||||||
@ -112,4 +112,4 @@ ynh_use_logrotate "/var/log/$app"
|
|||||||
|
|
||||||
# Reload services
|
# Reload services
|
||||||
ynh_check_starting "Serving [::]:$port with pid" "/var/log/$app/gitea.log"
|
ynh_check_starting "Serving [::]:$port with pid" "/var/log/$app/gitea.log"
|
||||||
systemctl gitea restart
|
systemctl restart gitea
|
||||||
|
@ -43,4 +43,6 @@ ynh_system_user_delete $app
|
|||||||
ynh_remove_systemd_config
|
ynh_remove_systemd_config
|
||||||
|
|
||||||
# Remove monitor
|
# Remove monitor
|
||||||
yunohost service remove "$app"
|
yunohost service remove "$app"
|
||||||
|
|
||||||
|
true # Do not fail if remove after install error
|
||||||
|
@ -67,7 +67,7 @@ then
|
|||||||
ynh_secure_remove /opt/gogs
|
ynh_secure_remove /opt/gogs
|
||||||
ynh_secure_remove /etc/gogs
|
ynh_secure_remove /etc/gogs
|
||||||
ynh_secure_remove /opt/gogs_src
|
ynh_secure_remove /opt/gogs_src
|
||||||
|
|
||||||
# create needed directories if not already created
|
# create needed directories if not already created
|
||||||
create_dir
|
create_dir
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user