1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/forgejo_ynh.git synced 2024-09-03 18:36:26 +02:00

fix: use standard install directory

* Update install

* use final_path in systemd config

* update package version

* Auto-update README

---------

Co-authored-by: Emmanuel Averty <emmanuel.averty@free.fr>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>
This commit is contained in:
Éric Gaspar 2023-03-08 18:20:50 +01:00 committed by grosmanal
parent 274bd8ad29
commit 51ebe17d70
5 changed files with 5 additions and 5 deletions

View file

@ -32,7 +32,7 @@ Forgejo is a Gitea fork (which is a Gogs fork). A self-hosted Git service writte
- Customize HTML templates, static files and many others.
**Shipped version:** 1.18.5-0~ynh2
**Shipped version:** 1.18.5-0~ynh3
## Screenshots

View file

@ -32,7 +32,7 @@ Forgejo is a Gitea fork (which is a Gogs fork). A self-hosted Git service writte
- Customize HTML templates, static files and many others.
**Version incluse :** 1.18.5-0~ynh2
**Version incluse :** 1.18.5-0~ynh3
## Captures décran

View file

@ -7,7 +7,7 @@ Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__DATADIR__/
ExecStart=/opt/__APP__/forgejo web -p __PORT__
ExecStart=__FINAL_PATH__/forgejo web -p __PORT__
Restart=always
Environment=USER=__APP__ HOME=__DATADIR__/

View file

@ -14,7 +14,7 @@
},
"url": "https://forgejo.org",
"license": "MIT",
"version": "1.18.5-0~ynh2",
"version": "1.18.5-0~ynh3",
"maintainer": {
"name": "Emmanuel Averty",
"email": "emmanuel.averty@free.fr"

View file

@ -34,7 +34,7 @@ app=$YNH_APP_INSTANCE_NAME
#=================================================
ynh_script_progression --message="Validating installation parameters..." --weight=1
final_path="/opt/$app"
final_path="/var/www/$app"
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
ynh_user_exists "$admin" || ynh_die --message "The chosen admin user does not exist."