1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pixelfed_ynh.git synced 2024-09-03 20:06:04 +02:00

Merge branch 'testing' into systemd

This commit is contained in:
lapineige 2024-07-05 09:49:17 +00:00 committed by GitHub
commit 29dd9c29ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 17 additions and 60 deletions

View file

@ -1,7 +1,7 @@
# All available README files by language
- [Read the README in English](README.md)
- [Lee el README en español](README_es.md)
- [Lea el README en español](README_es.md)
- [Irakurri README euskaraz](README_eu.md)
- [Lire le README en français](README_fr.md)
- [Le o README en galego](README_gl.md)

View file

@ -5,7 +5,7 @@ It shall NOT be edited by hand.
# Pixelfed for YunoHost
[![Integration level](https://dash.yunohost.org/integration/pixelfed.svg)](https://dash.yunohost.org/appci/app/pixelfed) ![Working status](https://ci-apps.yunohost.org/ci/badges/pixelfed.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/pixelfed.maintain.svg)
[![Integration level](https://dash.yunohost.org/integration/pixelfed.svg)](https://ci-apps.yunohost.org/ci/apps/pixelfed/) ![Working status](https://ci-apps.yunohost.org/ci/badges/pixelfed.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/pixelfed.maintain.svg)
[![Install Pixelfed with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=pixelfed)
@ -25,7 +25,7 @@ In addition to taking over the functionality of Instagram, the functioning of Pi
It is also possible to import your data from Instagram.
**Shipped version:** 0.12.1~ynh1
**Shipped version:** 0.12.3~ynh1
## Screenshots

View file

@ -5,7 +5,7 @@ No se debe editar a mano.
# Pixelfed para Yunohost
[![Nivel de integración](https://dash.yunohost.org/integration/pixelfed.svg)](https://dash.yunohost.org/appci/app/pixelfed) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/pixelfed.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/pixelfed.maintain.svg)
[![Nivel de integración](https://dash.yunohost.org/integration/pixelfed.svg)](https://ci-apps.yunohost.org/ci/apps/pixelfed/) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/pixelfed.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/pixelfed.maintain.svg)
[![Instalar Pixelfed con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=pixelfed)
@ -25,7 +25,7 @@ In addition to taking over the functionality of Instagram, the functioning of Pi
It is also possible to import your data from Instagram.
**Versión actual:** 0.12.1~ynh1
**Versión actual:** 0.12.3~ynh1
## Capturas

View file

@ -5,7 +5,7 @@ EZ editatu eskuz.
# Pixelfed YunoHost-erako
[![Integrazio maila](https://dash.yunohost.org/integration/pixelfed.svg)](https://dash.yunohost.org/appci/app/pixelfed) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/pixelfed.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/pixelfed.maintain.svg)
[![Integrazio maila](https://dash.yunohost.org/integration/pixelfed.svg)](https://ci-apps.yunohost.org/ci/apps/pixelfed/) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/pixelfed.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/pixelfed.maintain.svg)
[![Instalatu Pixelfed YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=pixelfed)
@ -25,7 +25,7 @@ In addition to taking over the functionality of Instagram, the functioning of Pi
It is also possible to import your data from Instagram.
**Paketatutako bertsioa:** 0.12.1~ynh1
**Paketatutako bertsioa:** 0.12.3~ynh1
## Pantaila-argazkiak

View file

@ -5,7 +5,7 @@ Il NE doit PAS être modifié à la main.
# Pixelfed pour YunoHost
[![Niveau dintégration](https://dash.yunohost.org/integration/pixelfed.svg)](https://dash.yunohost.org/appci/app/pixelfed) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/pixelfed.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/pixelfed.maintain.svg)
[![Niveau dintégration](https://dash.yunohost.org/integration/pixelfed.svg)](https://ci-apps.yunohost.org/ci/apps/pixelfed/) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/pixelfed.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/pixelfed.maintain.svg)
[![Installer Pixelfed avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=pixelfed)
@ -25,8 +25,7 @@ En plus de reprendre les fonctionnalités d'Instagram, le fonctionnement de Pixe
Il est également possible d'importer ses données depuis Instagram.
**Version incluse:** 0.12.1~ynh1
**Version incluse:** 0.12.3~ynh1
## Captures décran

View file

@ -5,7 +5,7 @@ NON debe editarse manualmente.
# Pixelfed para YunoHost
[![Nivel de integración](https://dash.yunohost.org/integration/pixelfed.svg)](https://dash.yunohost.org/appci/app/pixelfed) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/pixelfed.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/pixelfed.maintain.svg)
[![Nivel de integración](https://dash.yunohost.org/integration/pixelfed.svg)](https://ci-apps.yunohost.org/ci/apps/pixelfed/) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/pixelfed.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/pixelfed.maintain.svg)
[![Instalar Pixelfed con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=pixelfed)
@ -25,7 +25,7 @@ In addition to taking over the functionality of Instagram, the functioning of Pi
It is also possible to import your data from Instagram.
**Versión proporcionada:** 0.12.1~ynh1
**Versión proporcionada:** 0.12.3~ynh1
## Capturas de pantalla

View file

@ -5,7 +5,7 @@
# YunoHost 上的 Pixelfed
[![集成程度](https://dash.yunohost.org/integration/pixelfed.svg)](https://dash.yunohost.org/appci/app/pixelfed) ![工作状态](https://ci-apps.yunohost.org/ci/badges/pixelfed.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/pixelfed.maintain.svg)
[![集成程度](https://dash.yunohost.org/integration/pixelfed.svg)](https://ci-apps.yunohost.org/ci/apps/pixelfed/) ![工作状态](https://ci-apps.yunohost.org/ci/badges/pixelfed.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/pixelfed.maintain.svg)
[![使用 YunoHost 安装 Pixelfed](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=pixelfed)
@ -25,7 +25,7 @@ In addition to taking over the functionality of Instagram, the functioning of Pi
It is also possible to import your data from Instagram.
**分发版本:** 0.12.1~ynh1
**分发版本:** 0.12.3~ynh1
## 截图

View file

@ -5,7 +5,7 @@ name = "Pixelfed"
description.en = "ActivityPub Federated Image Sharing"
description.fr = "Logiciel de partage d'image fédéré via ActivityPub"
version = "0.12.1~ynh1"
version = "0.12.3~ynh1"
maintainers = ["yalh76", "Lapineige"]
@ -17,7 +17,7 @@ userdoc = "https://docs.pixelfed.org/"
code = "https://github.com/pixelfed/pixelfed"
[integration]
yunohost = ">= 11.2.4"
yunohost = ">= 11.2.12"
architectures = "all"
multi_instance = true
ldap = false
@ -36,8 +36,8 @@ ram.runtime = "100M"
[resources]
[resources.sources.main]
url = "https://github.com/pixelfed/pixelfed/archive/refs/tags/v0.12.1.tar.gz"
sha256 = "dcfc497921ebc535245bff3a3aa1e6dbd774c65d3d26cf005caca999a20c28d6"
url = "https://github.com/pixelfed/pixelfed/archive/refs/tags/v0.12.3.tar.gz"
sha256 = "04c9c0528d7b315eb909a792ab4efccbc4314fb2a8ddfe9eefc5f500a97b2992"
autoupdate.strategy = "latest_github_tag"
[resources.system_user]

View file

@ -18,47 +18,6 @@ YNH_COMPOSER_VERSION="2.2.21"
# FUTURE OFFICIAL HELPERS
#=================================================
# get the first available redis database
#
# usage: ynh_redis_get_free_db
# | returns: the database number to use
ynh_redis_get_free_db() {
local result max db
result="$(redis-cli INFO keyspace)"
# get the num
max=$(cat /etc/redis/redis.conf | grep ^databases | grep -Eow "[0-9]+")
db=0
# default Debian setting is 15 databases
for i in $(seq 0 "$max")
do
if ! echo "$result" | grep -q "db$i"
then
db=$i
break 1
fi
db=-1
done
test "$db" -eq -1 && ynh_die --message="No available Redis databases..."
echo "$db"
}
# Create a master password and set up global settings
# Please always call this script in install and restore scripts
#
# usage: ynh_redis_remove_db database
# | arg: database - the database to erase
ynh_redis_remove_db() {
local db=$1
redis-cli -n "$db" flushdb
}
#=================================================
# Create a dedicated supervisor config
#

View file

@ -39,7 +39,6 @@ ynh_remove_fpm_config
ynh_secure_remove --file="/etc/cron.d/$app"
# Remove the log files
ynh_secure_remove --file="/var/log/$app"
#=================================================
# END OF SCRIPT