mirror of
https://github.com/YunoHost-Apps/misskey_ynh.git
synced 2024-09-03 19:46:03 +02:00
Merge 7b83b45854
into e3e7ff872c
This commit is contained in:
commit
88649e523e
11 changed files with 27 additions and 42 deletions
|
@ -5,7 +5,7 @@ It shall NOT be edited by hand.
|
||||||
|
|
||||||
# Misskey for YunoHost
|
# Misskey for YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/misskey)  
|
[](https://ci-apps.yunohost.org/ci/apps/misskey/)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=misskey)
|
[](https://install-app.yunohost.org/?app=misskey)
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ It shall NOT be edited by hand.
|
||||||
Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms.
|
Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms.
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 12.119.2~ynh2
|
**Shipped version:** 2024.3.1~ynh1
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ No se debe editar a mano.
|
||||||
|
|
||||||
# Misskey para Yunohost
|
# Misskey para Yunohost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/misskey)  
|
[](https://ci-apps.yunohost.org/ci/apps/misskey/)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=misskey)
|
[](https://install-app.yunohost.org/?app=misskey)
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ No se debe editar a mano.
|
||||||
Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms.
|
Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms.
|
||||||
|
|
||||||
|
|
||||||
**Versión actual:** 12.119.2~ynh2
|
**Versión actual:** 2024.3.1~ynh1
|
||||||
|
|
||||||
## Capturas
|
## Capturas
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ EZ editatu eskuz.
|
||||||
|
|
||||||
# Misskey YunoHost-erako
|
# Misskey YunoHost-erako
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/misskey)  
|
[](https://ci-apps.yunohost.org/ci/apps/misskey/)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=misskey)
|
[](https://install-app.yunohost.org/?app=misskey)
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ EZ editatu eskuz.
|
||||||
Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms.
|
Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms.
|
||||||
|
|
||||||
|
|
||||||
**Paketatutako bertsioa:** 12.119.2~ynh2
|
**Paketatutako bertsioa:** 2024.3.1~ynh1
|
||||||
|
|
||||||
## Pantaila-argazkiak
|
## Pantaila-argazkiak
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ Il NE doit PAS être modifié à la main.
|
||||||
|
|
||||||
# Misskey pour YunoHost
|
# Misskey pour YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/misskey)  
|
[](https://ci-apps.yunohost.org/ci/apps/misskey/)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=misskey)
|
[](https://install-app.yunohost.org/?app=misskey)
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ Il NE doit PAS être modifié à la main.
|
||||||
|
|
||||||
Misskey est une plateforme de microblogging décentralisée. Puisqu'il existe au sein du Fediverse (un univers où diverses plateformes de médias sociaux sont organisées), il est mutuellement lié à d'autres plateformes de médias sociaux.
|
Misskey est une plateforme de microblogging décentralisée. Puisqu'il existe au sein du Fediverse (un univers où diverses plateformes de médias sociaux sont organisées), il est mutuellement lié à d'autres plateformes de médias sociaux.
|
||||||
|
|
||||||
**Version incluse :** 12.119.2~ynh2
|
**Version incluse :** 2024.3.1~ynh1
|
||||||
|
|
||||||
## Captures d’écran
|
## Captures d’écran
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ NON debe editarse manualmente.
|
||||||
|
|
||||||
# Misskey para YunoHost
|
# Misskey para YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/misskey)  
|
[](https://ci-apps.yunohost.org/ci/apps/misskey/)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=misskey)
|
[](https://install-app.yunohost.org/?app=misskey)
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ NON debe editarse manualmente.
|
||||||
Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms.
|
Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms.
|
||||||
|
|
||||||
|
|
||||||
**Versión proporcionada:** 12.119.2~ynh2
|
**Versión proporcionada:** 2024.3.1~ynh1
|
||||||
|
|
||||||
## Capturas de pantalla
|
## Capturas de pantalla
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# YunoHost 上的 Misskey
|
# YunoHost 上的 Misskey
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/misskey)  
|
[](https://ci-apps.yunohost.org/ci/apps/misskey/)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=misskey)
|
[](https://install-app.yunohost.org/?app=misskey)
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms.
|
Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms.
|
||||||
|
|
||||||
|
|
||||||
**分发版本:** 12.119.2~ynh2
|
**分发版本:** 2024.3.1~ynh1
|
||||||
|
|
||||||
## 截图
|
## 截图
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ name = "Misskey"
|
||||||
description.en = "Microblogging platform"
|
description.en = "Microblogging platform"
|
||||||
description.fr = "Platforme de Microblogging"
|
description.fr = "Platforme de Microblogging"
|
||||||
|
|
||||||
version = "12.119.2~ynh2"
|
version = "2024.3.1~ynh1"
|
||||||
|
|
||||||
maintainers = []
|
maintainers = []
|
||||||
|
|
||||||
|
@ -22,11 +22,14 @@ fund = "https://patreon.com/syuilo"
|
||||||
yunohost = ">= 11.2.12"
|
yunohost = ">= 11.2.12"
|
||||||
architectures = ["amd64", "arm64"]
|
architectures = ["amd64", "arm64"]
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
|
|
||||||
ldap = false
|
ldap = false
|
||||||
|
|
||||||
sso = true
|
sso = true
|
||||||
disk = "50M" # FIXME: replace with an **estimate** minimum disk requirement. e.g. 20M, 400M, 1G, ...
|
|
||||||
ram.build = "50M" # FIXME: replace with an **estimate** minimum ram requirement. e.g. 50M, 400M, 1G, ...
|
disk = "50M"
|
||||||
ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requirement. e.g. 50M, 400M, 1G, ...
|
ram.build = "50M"
|
||||||
|
ram.runtime = "50M"
|
||||||
|
|
||||||
[install]
|
[install]
|
||||||
[install.domain]
|
[install.domain]
|
||||||
|
@ -39,10 +42,10 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen
|
||||||
default = "visitors"
|
default = "visitors"
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
[resources.sources.main]
|
|
||||||
url = "https://github.com/misskey-dev/misskey/archive/refs/tags/12.119.2.tar.gz"
|
|
||||||
sha256 = "0620c8d4ee82f3bfa5749197b719cff606628413875589918df58f71cae9df57"
|
|
||||||
|
|
||||||
|
[resources.sources.main]
|
||||||
|
url = "https://github.com/misskey-dev/misskey/archive/refs/tags/2024.3.1.tar.gz"
|
||||||
|
sha256 = "f962f38fbf71f600fcc8c1969f418f46565fa58b83dc93528d29a3e65fd79571"
|
||||||
autoupdate.strategy = "latest_github_tag"
|
autoupdate.strategy = "latest_github_tag"
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
@ -57,7 +60,8 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen
|
||||||
[resources.apt]
|
[resources.apt]
|
||||||
packages = [
|
packages = [
|
||||||
"ffmpeg",
|
"ffmpeg",
|
||||||
"postgresql"
|
"postgresql",
|
||||||
|
"redis-server",
|
||||||
]
|
]
|
||||||
|
|
||||||
[resources.apt.extras.yarn]
|
[resources.apt.extras.yarn]
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# COMMON VARIABLES
|
# COMMON VARIABLES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
NODEJS_VERSION="16.15.0"
|
NODEJS_VERSION="20"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
|
@ -13,7 +13,7 @@ NODEJS_VERSION="16.15.0"
|
||||||
misskey_build() {
|
misskey_build() {
|
||||||
pushd "$install_dir"
|
pushd "$install_dir"
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" NODE_ENV=production yarn add ts-node webpack
|
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" NODE_ENV=production yarn add ts-node webpack -W
|
||||||
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" NODE_ENV=production yarn build
|
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" NODE_ENV=production yarn build
|
||||||
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" NODE_ENV=production yarn run init
|
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" NODE_ENV=production yarn run init
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -26,27 +26,12 @@ ynh_remove_logrotate
|
||||||
# Remove the dedicated NGINX config
|
# Remove the dedicated NGINX config
|
||||||
ynh_remove_nginx_config
|
ynh_remove_nginx_config
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# REMOVE THE REDIS DATABASE
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Removing the redis database..." --weight=1
|
|
||||||
|
|
||||||
ynh_redis_remove_db "$redis_db"
|
ynh_redis_remove_db "$redis_db"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# REMOVE DEPENDENCIES
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Removing NodeJS..." --weight=1
|
|
||||||
|
|
||||||
# Remove metapackage and its dependencies
|
# Remove metapackage and its dependencies
|
||||||
ynh_remove_nodejs
|
ynh_remove_nodejs
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# REMOVE VARIOUS FILES
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
# Remove the log files
|
# Remove the log files
|
||||||
ynh_secure_remove --file="/var/log/$app"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
|
@ -42,6 +42,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||||
systemctl enable "$app.service" --quiet
|
systemctl enable "$app.service" --quiet
|
||||||
|
|
||||||
yunohost service add "$app" --description="A interplanetary blogging platform" --log="/var/log/$app/$app.log"
|
yunohost service add "$app" --description="A interplanetary blogging platform" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
||||||
|
|
|
@ -23,11 +23,6 @@ ynh_script_progression --message="Stopping $app's systemd service..." --weight=1
|
||||||
# Stop bservice before backup, to not loose message in case of failed upgrade and restore
|
# Stop bservice before backup, to not loose message in case of failed upgrade and restore
|
||||||
ynh_systemd_action --service_name="$app" --action="stop" --log_path=systemd
|
ynh_systemd_action --service_name="$app" --action="stop" --log_path=systemd
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# ENSURE DOWNWARD COMPATIBILITY
|
|
||||||
#=================================================
|
|
||||||
# ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE DEPENDENCIES
|
# UPGRADE DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue