mirror of
https://github.com/YunoHost-Apps/gotosocial_ynh.git
synced 2024-09-03 19:16:06 +02:00
Merge pull request #104 from YunoHost-Apps/testing
Testing v0.12.0 Spaghetti Sloth 🍝
This commit is contained in:
commit
257c71ce60
15 changed files with 122 additions and 50 deletions
|
@ -25,7 +25,7 @@ With GoToSocial, you can keep in touch with your friends, post, read, and share
|
||||||
Documentation is at [docs.gotosocial.org](https://docs.gotosocial.org).
|
Documentation is at [docs.gotosocial.org](https://docs.gotosocial.org).
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 0.11.1~ynh4
|
**Shipped version:** 0.12.0~ynh1
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
@ -115,7 +115,6 @@ And to promote them as an administrator of your instance:
|
||||||
* Official user documentation: <https://docs.gotosocial.org/en/latest/>
|
* Official user documentation: <https://docs.gotosocial.org/en/latest/>
|
||||||
* Official admin documentation: <https://docs.gotosocial.org/en/latest/>
|
* Official admin documentation: <https://docs.gotosocial.org/en/latest/>
|
||||||
* Upstream app code repository: <https://github.com/superseriousbusiness/gotosocial>
|
* Upstream app code repository: <https://github.com/superseriousbusiness/gotosocial>
|
||||||
* YunoHost documentation for this app: <https://yunohost.org/app_gotosocial>
|
|
||||||
* Report a bug: <https://github.com/YunoHost-Apps/gotosocial_ynh/issues>
|
* Report a bug: <https://github.com/YunoHost-Apps/gotosocial_ynh/issues>
|
||||||
|
|
||||||
## Developer info
|
## Developer info
|
||||||
|
|
|
@ -25,7 +25,7 @@ Avec GoToSocial, vous pouvez rester en contact avec vos amis, publier, lire et p
|
||||||
Vous pouvez consulter la documentation à l'adresse : [docs.gotosocial.org](https://docs.gotosocial.org).
|
Vous pouvez consulter la documentation à l'adresse : [docs.gotosocial.org](https://docs.gotosocial.org).
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 0.11.1~ynh4
|
**Version incluse :** 0.12.0~ynh1
|
||||||
|
|
||||||
## Captures d’écran
|
## Captures d’écran
|
||||||
|
|
||||||
|
@ -115,7 +115,6 @@ Et pour promouvoir un compte en tant qu'administrateur de votre instance :
|
||||||
* Documentation officielle utilisateur : <https://docs.gotosocial.org/en/latest/>
|
* Documentation officielle utilisateur : <https://docs.gotosocial.org/en/latest/>
|
||||||
* Documentation officielle de l’admin : <https://docs.gotosocial.org/en/latest/>
|
* Documentation officielle de l’admin : <https://docs.gotosocial.org/en/latest/>
|
||||||
* Dépôt de code officiel de l’app : <https://github.com/superseriousbusiness/gotosocial>
|
* Dépôt de code officiel de l’app : <https://github.com/superseriousbusiness/gotosocial>
|
||||||
* Documentation YunoHost pour cette app : <https://yunohost.org/app_gotosocial>
|
|
||||||
* Signaler un bug : <https://github.com/YunoHost-Apps/gotosocial_ynh/issues>
|
* Signaler un bug : <https://github.com/YunoHost-Apps/gotosocial_ynh/issues>
|
||||||
|
|
||||||
## Informations pour les développeurs
|
## Informations pour les développeurs
|
||||||
|
|
|
@ -17,10 +17,8 @@
|
||||||
setup_private=0
|
setup_private=0
|
||||||
setup_public=1
|
setup_public=1
|
||||||
upgrade=1
|
upgrade=1
|
||||||
upgrade=1 from_commit=29c7d0df5dd6e3d90070f242b74cce980676cd72
|
|
||||||
upgrade=1 from_commit=5c1c052995a10d899abcb0e4d4fa1c1dc35f84a5
|
|
||||||
upgrade=1 from_commit=1b6c1c62e022f04afa02bf128f419e77a72bf1e9
|
|
||||||
upgrade=1 from_commit=9a6d018337c7d83193282830ff9d9e9b0ae3a733
|
upgrade=1 from_commit=9a6d018337c7d83193282830ff9d9e9b0ae3a733
|
||||||
|
upgrade=1 from_commit=2750ec2d59df9c988b7a8624104063fcf7f1c198
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=1
|
multi_instance=1
|
||||||
port_already_use=1
|
port_already_use=1
|
||||||
|
@ -29,11 +27,7 @@
|
||||||
Email=
|
Email=
|
||||||
Notification=none
|
Notification=none
|
||||||
;;; Upgrade options
|
;;; Upgrade options
|
||||||
; commit=29c7d0df5dd6e3d90070f242b74cce980676cd72
|
|
||||||
name=0.3.6~ynh1
|
|
||||||
; commit=5c1c052995a10d899abcb0e4d4fa1c1dc35f84a5
|
|
||||||
name=v0.4.0~ynh1
|
|
||||||
; commit=1b6c1c62e022f04afa02bf128f419e77a72bf1e9
|
|
||||||
name=0.5.2~ynh2
|
|
||||||
; commit=9a6d018337c7d83193282830ff9d9e9b0ae3a733
|
; commit=9a6d018337c7d83193282830ff9d9e9b0ae3a733
|
||||||
name=0.6.0~ynh1
|
name=0.6.0~ynh1
|
||||||
|
; commit=2750ec2d59df9c988b7a8624104063fcf7f1c198
|
||||||
|
name=0.11.0~ynh1
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
SOURCE_URL=https://github.com/superseriousbusiness/gotosocial/releases/download/v0.11.1/gotosocial_0.11.1_linux_arm64.tar.gz
|
SOURCE_URL=https://github.com/superseriousbusiness/gotosocial/releases/download/v0.12.0/gotosocial_0.12.0_linux_arm64.tar.gz
|
||||||
SOURCE_SUM=d5478c5833df4c7a0510b452546640e10575d2fa45fa43dbbc2e2714f762362a
|
SOURCE_SUM=846d0700d34358bcc9ed452ed1459ed072ba6abe0dcf760bad73a465579930a8
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_EXTRACT=true
|
SOURCE_EXTRACT=true
|
||||||
SOURCE_IN_SUBDIR=false
|
SOURCE_IN_SUBDIR=false
|
||||||
SOURCE_FILENAME=gotosocial_0.11.1_linux_arm64.tar.gz
|
SOURCE_FILENAME=gotosocial_0.12.0_linux_arm64.tar.gz
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
SOURCE_URL=https://github.com/superseriousbusiness/gotosocial/releases/download/v0.11.1/gotosocial_0.11.1_linux_armv6.tar.gz
|
SOURCE_URL=https://github.com/superseriousbusiness/gotosocial/releases/download/v0.12.0/gotosocial_0.12.0_linux_armv6.tar.gz
|
||||||
SOURCE_SUM=aadd5ecab1d2a42923ca34bdea7791ab5682ef46b36e9b515a57b55217f397bc
|
SOURCE_SUM=fa16467b5fb72d34b03f80161b4d5aab02c4a55296768835fa99eb843909aec5
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_EXTRACT=true
|
SOURCE_EXTRACT=true
|
||||||
SOURCE_IN_SUBDIR=false
|
SOURCE_IN_SUBDIR=false
|
||||||
SOURCE_FILENAME=gotosocial_0.11.1_linux_armv6.tar.gz
|
SOURCE_FILENAME=gotosocial_0.12.0_linux_armv6.tar.gz
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
SOURCE_URL=https://github.com/superseriousbusiness/gotosocial/releases/download/v0.11.1/gotosocial_0.11.1_linux_armv7.tar.gz
|
SOURCE_URL=https://github.com/superseriousbusiness/gotosocial/releases/download/v0.12.0/gotosocial_0.12.0_linux_armv7.tar.gz
|
||||||
SOURCE_SUM=6c19c23f7476ab0cd5e7e698bfd47bafa582eba84b810dcb8539e97a419cc136
|
SOURCE_SUM=44c4ce23a50ef31020693a05f96ec0408dbd41f6e9bd928aa979bb820f96d84e
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_EXTRACT=true
|
SOURCE_EXTRACT=true
|
||||||
SOURCE_IN_SUBDIR=false
|
SOURCE_IN_SUBDIR=false
|
||||||
SOURCE_FILENAME=gotosocial_0.11.1_linux_armv7.tar.gz
|
SOURCE_FILENAME=gotosocial_0.12.0_linux_armv7.tar.gz
|
||||||
|
|
|
@ -35,6 +35,17 @@ log-db-queries: false
|
||||||
# Default: true
|
# Default: true
|
||||||
log-client-ip: true
|
log-client-ip: true
|
||||||
|
|
||||||
|
# String. Format to use for the timestamp in log lines.
|
||||||
|
# If set to the empty string, the timestamp will be
|
||||||
|
# ommitted from the logs entirely.
|
||||||
|
#
|
||||||
|
# The format must be compatible with Go's time.Layout, as
|
||||||
|
# documented on https://pkg.go.dev/time#pkg-constants.
|
||||||
|
#
|
||||||
|
# Examples: [true, false]
|
||||||
|
# Default: "02/01/2006 15:04:05.000"
|
||||||
|
log-timestamp-format: "02/01/2006 15:04:05.000"
|
||||||
|
|
||||||
# String. Application name to use internally.
|
# String. Application name to use internally.
|
||||||
# Examples: ["My Application","gotosocial"]
|
# Examples: ["My Application","gotosocial"]
|
||||||
# Default: "gotosocial"
|
# Default: "gotosocial"
|
||||||
|
@ -72,7 +83,7 @@ host: "__DOMAIN__"
|
||||||
# Examples: ["example.org","server.com"]
|
# Examples: ["example.org","server.com"]
|
||||||
#
|
#
|
||||||
# Please read the appropriate section of the installation guide before you go messing around with this setting:
|
# Please read the appropriate section of the installation guide before you go messing around with this setting:
|
||||||
# https://docs.gotosocial.org/installation_guide/advanced/#can-i-host-my-instance-at-fediexampleorg-but-have-just-exampleorg-in-my-username
|
# https://docs.gotosocial.org/en/latest/advanced/host-account-domain/
|
||||||
#
|
#
|
||||||
# Default: ""
|
# Default: ""
|
||||||
account-domain: ""
|
account-domain: ""
|
||||||
|
@ -262,6 +273,21 @@ web-asset-base-dir: "./web/assets/"
|
||||||
|
|
||||||
# Config pertaining to instance federation settings, pages to hide/expose, etc.
|
# Config pertaining to instance federation settings, pages to hide/expose, etc.
|
||||||
|
|
||||||
|
# String. Federation mode to use for this instance.
|
||||||
|
#
|
||||||
|
# "blocklist" -- open federation by default. Only instances that are explicitly
|
||||||
|
# blocked will be denied (unless they are also explicitly allowed).
|
||||||
|
#
|
||||||
|
# "allowlist" -- closed federation by default. Only instances that are explicitly
|
||||||
|
# allowed will be able to interact with this instance.
|
||||||
|
#
|
||||||
|
# For more details on blocklist and allowlist modes, check the documentation at:
|
||||||
|
# https://docs.gotosocial.org/en/latest/admin/federation_modes
|
||||||
|
#
|
||||||
|
# Options: ["blocklist", "allowlist"]
|
||||||
|
# Default: "blocklist"
|
||||||
|
instance-federation-mode: "__INSTANCE_FEDERATION_MODE__"
|
||||||
|
|
||||||
# Bool. Allow unauthenticated users to make queries to /api/v1/instance/peers?filter=open in order
|
# Bool. Allow unauthenticated users to make queries to /api/v1/instance/peers?filter=open in order
|
||||||
# to see a list of instances that this instance 'peers' with. Even if set to 'false', then authenticated
|
# to see a list of instances that this instance 'peers' with. Even if set to 'false', then authenticated
|
||||||
# users (members of the instance) will still be able to query the endpoint.
|
# users (members of the instance) will still be able to query the endpoint.
|
||||||
|
@ -270,9 +296,12 @@ web-asset-base-dir: "./web/assets/"
|
||||||
instance-expose-peers: __INSTANCE_EXPOSE_PEERS__
|
instance-expose-peers: __INSTANCE_EXPOSE_PEERS__
|
||||||
|
|
||||||
# Bool. Allow unauthenticated users to make queries to /api/v1/instance/peers?filter=suspended in order
|
# Bool. Allow unauthenticated users to make queries to /api/v1/instance/peers?filter=suspended in order
|
||||||
# to see a list of instances that this instance blocks/suspends. This will also allow unauthenticated
|
# to see a list of instances that this instance blocks/suspends. Even if set to 'false', then authenticated
|
||||||
# users to see the list through the web UI. Even if set to 'false', then authenticated users (members
|
# users (members of the instance) will still be able to query the endpoint.
|
||||||
# of the instance) will still be able to query the endpoint.
|
#
|
||||||
|
# WARNING: Setting this variable to 'true' may result in your instance being scraped by blocklist scrapers.
|
||||||
|
# See: https://docs.gotosocial.org/en/latest/admin/domain_blocks/#block-announce-bots
|
||||||
|
#
|
||||||
# Options: [true, false]
|
# Options: [true, false]
|
||||||
# Default: false
|
# Default: false
|
||||||
instance-expose-suspended: __INSTANCE_EXPOSE_SUSPENDED__
|
instance-expose-suspended: __INSTANCE_EXPOSE_SUSPENDED__
|
||||||
|
@ -714,21 +743,19 @@ request-id-header: "X-Request-Id"
|
||||||
# Default: false
|
# Default: false
|
||||||
tracing-enabled: false
|
tracing-enabled: false
|
||||||
|
|
||||||
# String. Set the transport protocol for the tracing system. Can either be "grpc" for
|
# String. Set the transport protocol for the tracing system. Can either be "grpc"
|
||||||
# OTLP gRPC or "jaeger" for jaeger based ingesters.
|
# for OTLP gRPC, or "http" for OTLP HTTP.
|
||||||
# Options: ["grpc", "jaeger"]
|
# Options: ["grpc", "http"]
|
||||||
# Default: "grpc"
|
# Default: "grpc"
|
||||||
tracing-transport: "grpc"
|
tracing-transport: "grpc"
|
||||||
|
|
||||||
# String. Endpoint of the trace ingester. When using the gRPC based transport, the
|
# String. Endpoint of the trace ingester. When using the gRPC or HTTP based transports,
|
||||||
# endpoint is usually a single address/port combination. For the jaeger transport it
|
# provide the endpoint as a single address/port combination without a protocol scheme.
|
||||||
# should be a fully qualified URL.
|
# Examples: ["localhost:4317"]
|
||||||
# OTLP gRPC or "jaeger" for jaeger based ingesters
|
|
||||||
# Examples: ["localhost:4317", "http://localhost:14268/api/traces"]
|
|
||||||
# Default: ""
|
# Default: ""
|
||||||
tracing-endpoint: ""
|
tracing-endpoint: ""
|
||||||
|
|
||||||
# Bool. Disable HTTPS for the gRPC transport protocol.
|
# Bool. Disable TLS for the gRPC and HTTP transport protocols.
|
||||||
# Default: false
|
# Default: false
|
||||||
tracing-insecure-transport: false
|
tracing-insecure-transport: false
|
||||||
|
|
||||||
|
@ -838,6 +865,34 @@ advanced-cookies-samesite: "__ADVANCED_COOKIES_SAMESITE__"
|
||||||
# Default: 1000
|
# Default: 1000
|
||||||
advanced-rate-limit-requests: __ADVANCED_RATE_LIMIT_REQUESTS__
|
advanced-rate-limit-requests: __ADVANCED_RATE_LIMIT_REQUESTS__
|
||||||
|
|
||||||
|
# Array of string. CIDRs to except from rate limit restrictions.
|
||||||
|
# Any IPs inside the CIDR range(s) will not have rate limiting
|
||||||
|
# applied on their requests, and rate limit headers will not be
|
||||||
|
# set for those requests.
|
||||||
|
#
|
||||||
|
# This can be useful in the following example cases (and probably
|
||||||
|
# a bunch of others as well):
|
||||||
|
#
|
||||||
|
# 1. You've set up an automated service that uses the API, and
|
||||||
|
# it keeps getting rate limited, even though you trust it's
|
||||||
|
# not abusing the instance.
|
||||||
|
#
|
||||||
|
# 2. You live with multiple people who use the same instance,
|
||||||
|
# and you're all using the same router/NAT, so you all have
|
||||||
|
# the same IP address, and you keep rate limiting each other.
|
||||||
|
#
|
||||||
|
# 3. You mostly use your own home internet to access your instance,
|
||||||
|
# and you want to exempt your home internet from rate limiting.
|
||||||
|
#
|
||||||
|
# You should be careful when adjusting this setting, since you
|
||||||
|
# might inadvertently make rate limiting useless if you set too
|
||||||
|
# wide a range. If in doubt, be too restrictive rather than too
|
||||||
|
# lenient, and adjust as you go.
|
||||||
|
#
|
||||||
|
# Example: ["192.168.0.0/16"]
|
||||||
|
# Default: []
|
||||||
|
advanced-rate-limit-exceptions: []
|
||||||
|
|
||||||
# Int. Amount of open requests to permit per CPU, per router grouping, before applying http
|
# Int. Amount of open requests to permit per CPU, per router grouping, before applying http
|
||||||
# request throttling. Any requests beyond the calculated limit are held in a backlog queue for
|
# request throttling. Any requests beyond the calculated limit are held in a backlog queue for
|
||||||
# up to 30 seconds before either being processed or timing out. Requests that don't fit in the backlog
|
# up to 30 seconds before either being processed or timing out. Requests that don't fit in the backlog
|
||||||
|
@ -921,4 +976,4 @@ advanced-sender-multiplier: 2
|
||||||
#
|
#
|
||||||
# Example: ["s3.example.org", "some-bucket-name.s3.example.org"]
|
# Example: ["s3.example.org", "some-bucket-name.s3.example.org"]
|
||||||
# Default: []
|
# Default: []
|
||||||
advanced-csp-extra-uris: []
|
advanced-csp-extra-uris: []
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
SOURCE_URL=https://github.com/superseriousbusiness/gotosocial/releases/download/v0.11.1/gotosocial_0.11.1_linux_386.tar.gz
|
SOURCE_URL=https://github.com/superseriousbusiness/gotosocial/releases/download/v0.12.0/gotosocial_0.12.0_linux_386.tar.gz
|
||||||
SOURCE_SUM=f66f455c7406ac40ff04320cb8f030b5affe8acd39937a8727b0ea53887c7227
|
SOURCE_SUM=e91e4af12341f73bb1be58d953679e09ab24f47a4ccfc417f1ec4e3fbf6a97c2
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_EXTRACT=true
|
SOURCE_EXTRACT=true
|
||||||
SOURCE_IN_SUBDIR=false
|
SOURCE_IN_SUBDIR=false
|
||||||
SOURCE_FILENAME=gotosocial_0.11.1_linux_386.tar.gz
|
SOURCE_FILENAME=gotosocial_0.12.0_linux_386.tar.gz
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
SOURCE_URL=https://github.com/superseriousbusiness/gotosocial/releases/download/v0.11.1/gotosocial_0.11.1_linux_amd64.tar.gz
|
SOURCE_URL=https://github.com/superseriousbusiness/gotosocial/releases/download/v0.12.0/gotosocial_0.12.0_linux_amd64.tar.gz
|
||||||
SOURCE_SUM=4e44a5cb4044a523c51b5d178dfd06efb077a17dac22a9a170d6204cb7aed407
|
SOURCE_SUM=e1f309b1c8c7b224bfd12cefcd6c9111b15447d8ab7713e89d0066507ca06c45
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_EXTRACT=true
|
SOURCE_EXTRACT=true
|
||||||
SOURCE_IN_SUBDIR=false
|
SOURCE_IN_SUBDIR=false
|
||||||
SOURCE_FILENAME=gotosocial_0.11.1_linux_amd64.tar.gz
|
SOURCE_FILENAME=gotosocial_0.12.0_linux_amd64.tar.gz
|
||||||
|
|
|
@ -226,6 +226,18 @@ name = "Instance config"
|
||||||
|
|
||||||
help = "Config pertaining to instance federation settings, pages to hide/expose, etc."
|
help = "Config pertaining to instance federation settings, pages to hide/expose, etc."
|
||||||
|
|
||||||
|
[main.instance.instance_federation_mode]
|
||||||
|
ask.en = "Federation mode to use for this instance"
|
||||||
|
ask.fr = "Le mode de fédération à utiliser pour cette instance"
|
||||||
|
bind = "instance-federation-mode:__FINALPATH__/config.yaml"
|
||||||
|
choices = ["blocklist", "allowlist"]
|
||||||
|
default = "blocklist"
|
||||||
|
help.en = """blocklist: open federation by default. Only instances that are explicitly blocked will be denied (unless they are also explicitly allowed).\
|
||||||
|
allowlist: closed federation by default. Only instances that are explicitly allowed will be able to interact with this instance."""
|
||||||
|
help.fr = """blocklist : fédération ouverte par défaut. Seules les instances explicitement bloquées seront exclues (à moins qu'elles ne soient également explicitement autorisées).\
|
||||||
|
allowlist : fédération fermée par défaut. Seules les instances explicitement autorisées pourront interagir avec cette instance."""
|
||||||
|
type = "select"
|
||||||
|
|
||||||
[main.instance.landing_page_user]
|
[main.instance.landing_page_user]
|
||||||
ask.en = "Landing page user"
|
ask.en = "Landing page user"
|
||||||
ask.fr = "Utilisateurice en tant que page d'accueil"
|
ask.fr = "Utilisateurice en tant que page d'accueil"
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "ActivityPub social network server",
|
"en": "ActivityPub social network server",
|
||||||
"fr": "Serveur de réseau social basé sur ActivityPub"
|
"fr": "Serveur de réseau social basé sur ActivityPub"
|
||||||
},
|
},
|
||||||
"version": "0.11.1~ynh4",
|
"version": "0.12.0~ynh1",
|
||||||
"url": "https://github.com/superseriousbusiness/gotosocial",
|
"url": "https://github.com/superseriousbusiness/gotosocial",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
|
@ -106,4 +106,4 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,15 +15,15 @@ pkg_dependencies="postgresql postgresql-contrib"
|
||||||
# ($YNH_ARCH returns armhf for both...)
|
# ($YNH_ARCH returns armhf for both...)
|
||||||
detect_arch(){
|
detect_arch(){
|
||||||
local architecture
|
local architecture
|
||||||
if [ -n "$(uname -m | grep arm64)" ] || [ -n "$(uname -m | grep aarch64)" ]; then
|
if uname -m | grep -q -E "arm64|aarch64" ; then
|
||||||
architecture="arm64"
|
architecture="arm64"
|
||||||
elif [ -n "$(uname -m | grep 64)" ]; then
|
elif uname -m | grep -q "64" ; then
|
||||||
architecture="x86-64"
|
architecture="x86-64"
|
||||||
elif [ -n "$(uname -m | grep 86)" ]; then
|
elif uname -m | grep -q "86" ; then
|
||||||
architecture="i386"
|
architecture="i386"
|
||||||
elif [ -n "$(uname -m | grep armv6)" ]; then
|
elif uname -m | grep -q "armv6" ; then
|
||||||
architecture="armv6"
|
architecture="armv6"
|
||||||
elif [ -n "$(uname -m | grep armv7)" ]; then
|
elif uname -m | grep -q "armv7" ; then
|
||||||
architecture="armv7"
|
architecture="armv7"
|
||||||
else
|
else
|
||||||
architecture="unknown"
|
architecture="unknown"
|
||||||
|
|
|
@ -47,6 +47,7 @@ accounts_reason_required=$(convert_bool "$YNH_APP_ARG_ACCOUNTS_REASON_REQUIRED")
|
||||||
accounts_allow_custom_css="false"
|
accounts_allow_custom_css="false"
|
||||||
accounts_custom_css_length="10000"
|
accounts_custom_css_length="10000"
|
||||||
|
|
||||||
|
instance_federation_mode="blocklist"
|
||||||
instance_expose_peers="false"
|
instance_expose_peers="false"
|
||||||
instance_expose_suspended="false"
|
instance_expose_suspended="false"
|
||||||
instance_expose_suspended_web="false"
|
instance_expose_suspended_web="false"
|
||||||
|
@ -122,6 +123,7 @@ ynh_app_setting_set --app="$app" --key=accounts_reason_required --value="$accoun
|
||||||
ynh_app_setting_set --app="$app" --key=accounts_allow_custom_css --value="$accounts_allow_custom_css"
|
ynh_app_setting_set --app="$app" --key=accounts_allow_custom_css --value="$accounts_allow_custom_css"
|
||||||
ynh_app_setting_set --app="$app" --key=accounts_custom_css_length --value="$accounts_custom_css_length"
|
ynh_app_setting_set --app="$app" --key=accounts_custom_css_length --value="$accounts_custom_css_length"
|
||||||
|
|
||||||
|
ynh_app_setting_set --app="$app" --key=instance_federation_mode --value="$instance_federation_mode"
|
||||||
ynh_app_setting_set --app="$app" --key=instance_expose_peers --value="$instance_expose_peers"
|
ynh_app_setting_set --app="$app" --key=instance_expose_peers --value="$instance_expose_peers"
|
||||||
ynh_app_setting_set --app="$app" --key=instance_expose_suspended --value="$instance_expose_suspended"
|
ynh_app_setting_set --app="$app" --key=instance_expose_suspended --value="$instance_expose_suspended"
|
||||||
ynh_app_setting_set --app="$app" --key=instance_expose_suspended_web --value="$instance_expose_suspended_web"
|
ynh_app_setting_set --app="$app" --key=instance_expose_suspended_web --value="$instance_expose_suspended_web"
|
||||||
|
|
|
@ -46,6 +46,7 @@ datadir=$(ynh_app_setting_get --app="$app" --key=datadir)
|
||||||
|
|
||||||
cache_memory_target=$(ynh_app_setting_get --app="$app" --key=cache_memory_target)
|
cache_memory_target=$(ynh_app_setting_get --app="$app" --key=cache_memory_target)
|
||||||
|
|
||||||
|
instance_federation_mode=$(ynh_app_setting_get --app="$app" --key=instance_federation_mode)
|
||||||
instance_expose_peers=$(ynh_app_setting_get --app="$app" --key=instance_expose_peers)
|
instance_expose_peers=$(ynh_app_setting_get --app="$app" --key=instance_expose_peers)
|
||||||
instance_expose_suspended=$(ynh_app_setting_get --app="$app" --key=instance_expose_suspended)
|
instance_expose_suspended=$(ynh_app_setting_get --app="$app" --key=instance_expose_suspended)
|
||||||
instance_expose_suspended_web=$(ynh_app_setting_get --app="$app" --key=instance_expose_suspended_web)
|
instance_expose_suspended_web=$(ynh_app_setting_get --app="$app" --key=instance_expose_suspended_web)
|
||||||
|
|
|
@ -34,6 +34,7 @@ datadir=$(ynh_app_setting_get --app="$app" --key=datadir)
|
||||||
|
|
||||||
cache_memory_target=$(ynh_app_setting_get --app="$app" --key=cache_memory_target)
|
cache_memory_target=$(ynh_app_setting_get --app="$app" --key=cache_memory_target)
|
||||||
|
|
||||||
|
instance_federation_mode=$(ynh_app_setting_get --app="$app" --key=instance_federation_mode)
|
||||||
instance_expose_peers=$(ynh_app_setting_get --app="$app" --key=instance_expose_peers)
|
instance_expose_peers=$(ynh_app_setting_get --app="$app" --key=instance_expose_peers)
|
||||||
instance_expose_suspended=$(ynh_app_setting_get --app="$app" --key=instance_expose_suspended)
|
instance_expose_suspended=$(ynh_app_setting_get --app="$app" --key=instance_expose_suspended)
|
||||||
instance_expose_suspended_web=$(ynh_app_setting_get --app="$app" --key=instance_expose_suspended_web)
|
instance_expose_suspended_web=$(ynh_app_setting_get --app="$app" --key=instance_expose_suspended_web)
|
||||||
|
@ -326,6 +327,15 @@ then
|
||||||
ynh_app_setting_set --app="$app" --key=instance_inject_mastodon_version --value="$instance_inject_mastodon_version"
|
ynh_app_setting_set --app="$app" --key=instance_inject_mastodon_version --value="$instance_inject_mastodon_version"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Upgrade from <0.12.0~ynh1:
|
||||||
|
if ynh_compare_current_package_version --comparison lt --version 0.12.0~ynh1 || [ -z "$instance_federation_mode" ]
|
||||||
|
then
|
||||||
|
# declaration of new parameter
|
||||||
|
instance_federation_mode="blocklist"
|
||||||
|
# registration of parameter
|
||||||
|
ynh_app_setting_set --app="$app" --key=instance_federation_mode --value="$instance_federation_mode"
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DEDICATED USER
|
# CREATE DEDICATED USER
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue