1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libremdb_ynh.git synced 2024-09-03 19:36:22 +02:00

Merge pull request #13 from YunoHost-Apps/fix_install

Fix install
This commit is contained in:
Sebastian Gumprich 2023-10-22 20:21:12 +02:00 committed by GitHub
commit 48fc659814
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 19 deletions

View file

@ -27,7 +27,7 @@ A free & open source IMDb front-end.
**Shipped version:** 3.1.0~ynh2
**Shipped version:** 3.1.1~ynh1
**Demo:** https://libremdb.iket.me/about
@ -39,7 +39,6 @@ A free & open source IMDb front-end.
* Official app website: <https://libremdb.iket.me/>
* Upstream app code repository: <https://github.com/zyachel/libremdb>
* YunoHost documentation for this app: <https://yunohost.org/app_libremdb>
* Report a bug: <https://github.com/YunoHost-Apps/libremdb_ynh/issues>
## Developer info

View file

@ -27,7 +27,7 @@ A free & open source IMDb front-end.
**Version incluse :** 3.1.0~ynh2
**Version incluse :** 3.1.1~ynh1
**Démo :** https://libremdb.iket.me/about
@ -39,7 +39,6 @@ A free & open source IMDb front-end.
* Site officiel de lapp : <https://libremdb.iket.me/>
* Dépôt de code officiel de lapp : <https://github.com/zyachel/libremdb>
* Documentation YunoHost pour cette app : <https://yunohost.org/app_libremdb>
* Signaler un bug : <https://github.com/YunoHost-Apps/libremdb_ynh/issues>
## Informations pour les développeurs

View file

@ -5,7 +5,7 @@ name = "Libremdb"
description.en = "Free & open source IMDb front-end"
description.fr = "Frontal IMDb gratuit et open source"
version = "3.1.0~ynh2"
version = "3.1.1~ynh1"
maintainers = []
@ -35,8 +35,8 @@ ram.runtime = "50M"
[resources]
[resources.sources.main]
url = "https://github.com/zyachel/libremdb/archive/refs/tags/v3.1.0.tar.gz"
sha256 = "2af323505e30a8d053a59fac4d3e0693b131d1beba475c61844fe62cccffa325"
url = "https://github.com/zyachel/libremdb/archive/refs/tags/v3.1.1.tar.gz"
sha256 = "eb1845580d2ca7cb90d4cbd4852f8eae299e16fa36032a9c6a5114d4f73a380b"
autoupdate.strategy = "latest_github_tag"
[resources.ports]

View file

@ -7,7 +7,7 @@
#=================================================
# nodejs version
nodejs_version=16
nodejs_version=18
#=================================================
# PERSONAL HELPERS

View file

@ -43,17 +43,6 @@ ynh_add_nginx_config
redis_db=$(ynh_redis_get_free_db)
ynh_app_setting_set --app="$app" --key=redis_db --value="$redis_db"
#=================================================
# INSTALL LIBREMDB
#=================================================
ynh_script_progression --message="Building the app..." --weight=20
pushd $install_dir
ynh_use_nodejs
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_ENV=production yarn build
popd
#=================================================
# ADD A CONFIGURATION
#=================================================
@ -64,6 +53,20 @@ ynh_add_config --template="../conf/.env.local.example" --destination="$install_d
chmod 400 "$install_dir/.env.local"
chown $app:$app "$install_dir/.env.local"
#=================================================
# INSTALL LIBREMDB
#=================================================
ynh_script_progression --message="Building the app..." --weight=20
pushd $install_dir
ynh_use_nodejs
corepack enable
corepack prepare pnpm@latest --activate
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm install
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production pnpm build
popd
#=================================================
# SETUP SYSTEMD
#=================================================