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:
parent
274bd8ad29
commit
51ebe17d70
5 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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__/
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue