mirror of
https://github.com/YunoHost-Apps/akkoma_ynh.git
synced 2024-09-03 20:36:17 +02:00
Merge branch 'YunoHost-Apps:testing' into documentation
This commit is contained in:
commit
f48a29fe0c
4 changed files with 11 additions and 11 deletions
|
@ -7,7 +7,7 @@ location / {
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
||||||
proxy_pass http://localhost:__PORT__;
|
proxy_pass http://127.0.0.1:__PORT__;
|
||||||
|
|
||||||
client_max_body_size 50M;
|
client_max_body_size 50M;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=__APP__ social network
|
Description=__APP__: social network
|
||||||
After=network.target postgresql.service nginx.service
|
After=network.target postgresql.service nginx.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
"id": "akkoma",
|
"id": "akkoma",
|
||||||
"packaging_format": 1,
|
"packaging_format": 1,
|
||||||
"description": {
|
"description": {
|
||||||
"en": "A free, federated social networking server built on ActivityPub open protocol. Derivate of Pleroma.",
|
"en": "Federated social networking server built on ActivityPub open protocol",
|
||||||
"fr": "Un serveur de réseautage social fédéré et gratuit basé sur le protocole ouvert ActivityPub. Derivé de Pleroma."
|
"fr": "Serveur de réseautage social fédéré basé sur le protocole ouvert ActivityPub"
|
||||||
},
|
},
|
||||||
"version": "3.5.0~ynh3",
|
"version": "3.5.0~ynh3",
|
||||||
"url": "https://akkoma.social/",
|
"url": "https://akkoma.social/",
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
"name": "registration",
|
"name": "registration",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Should registration be open to users who do not have a Yunohost account on the system?",
|
"en": "Should registration be open to users who do not have a YunoHost account on the system?",
|
||||||
"fr": "L'inscription doit-elle être ouverte aux utilisateurs qui n'ont pas de compte YunoHost sur le système ?"
|
"fr": "L'inscription doit-elle être ouverte aux utilisateurs qui n'ont pas de compte YunoHost sur le système ?"
|
||||||
},
|
},
|
||||||
"default": false
|
"default": false
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
"name": "cache",
|
"name": "cache",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Enable media-cache for your instance : downloaded media won't be downloaded twice, at the price of storage capacity.",
|
"en": "Enable media-cache for your instance: downloaded media won't be downloaded twice, at the price of storage capacity.",
|
||||||
"fr": "Activer le cache média pour votre instance : les médias téléchargés le seront pas deux fois, au prix d'un plus grande utilisation de l'espace de stockage."
|
"fr": "Activer le cache média pour votre instance : les médias téléchargés le seront pas deux fois, au prix d'un plus grande utilisation de l'espace de stockage."
|
||||||
},
|
},
|
||||||
"default": true
|
"default": true
|
||||||
|
|
|
@ -232,6 +232,10 @@ ynh_store_file_checksum --file="$config"
|
||||||
chmod 400 "$config"
|
chmod 400 "$config"
|
||||||
chown $app:$app "$config"
|
chown $app:$app "$config"
|
||||||
|
|
||||||
|
ynh_script_progression --message="Configure admin UI to allow it to change setting - step 1/2" --weight=1
|
||||||
|
# change config file to allow configuration from the admin UI
|
||||||
|
ynh_replace_string --match_string="configurable_from_database: false" --replace_string="configurable_from_database: true" --target_file="$config"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -278,14 +282,10 @@ ynh_systemd_action --service_name=nginx --action=reload
|
||||||
# POST INSTALL
|
# POST INSTALL
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_script_progression --message="Configure admin UI to allow it to change setting..." --weight=1
|
ynh_script_progression --message="Configure admin UI to allow it to change setting - step 2/2" --weight=1
|
||||||
# Correct path to 'static dir' in DB
|
# Correct path to 'static dir' in DB
|
||||||
# This must be done when Akkoma is running (i.e. after install and start)
|
# This must be done when Akkoma is running (i.e. after install and start)
|
||||||
ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "$final_path/live/bin/pleroma_ctl config migrate_to_db"
|
ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "$final_path/live/bin/pleroma_ctl config migrate_to_db"
|
||||||
# allow configuration from the admin UI
|
|
||||||
ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "sed -i 's/configurable_from_database: false/configurable_from_database: true/' $config"
|
|
||||||
# restart Akkoma for the new setting to take effect
|
|
||||||
ynh_systemd_action --service_name=$app --action="restart" --log_path=systemd
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL BASIC FRONTENDS
|
# INSTALL BASIC FRONTENDS
|
||||||
|
|
Loading…
Reference in a new issue