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

Merge pull request #80 from YunoHost-Apps/testing

Make sure directories exist for config files
This commit is contained in:
eric_G 2024-01-10 12:23:10 +01:00 committed by GitHub
commit c84c8c4cd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 9 deletions

View file

@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
Lemmy is similar to sites like Reddit, Lobste.rs, or Hacker News: you subscribe to forums you're interested in, post links and discussions, then vote, and comment on them. Behind the scenes, it is very different; anyone can easily run a server, and all these servers are federated (think email), and connected to the same universe, called the Fediverse. Lemmy is similar to sites like Reddit, Lobste.rs, or Hacker News: you subscribe to forums you're interested in, post links and discussions, then vote, and comment on them. Behind the scenes, it is very different; anyone can easily run a server, and all these servers are federated (think email), and connected to the same universe, called the Fediverse.
**Shipped version:** 0.18.2~ynh2 **Shipped version:** 0.18.2~ynh3
**Demo:** https://lemmy.ml/ **Demo:** https://lemmy.ml/

View file

@ -18,7 +18,7 @@ Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
Lemmy est similaire à des sites comme Reddit, Lobste.rs ou Hacker News : vous vous abonnez aux forums qui vous intéressent, publiez des liens et des discussions, puis votez et commentez-les. Dans les coulisses, c'est très différent ; n'importe qui peut facilement exécuter un serveur, et tous ces serveurs sont fédérés (pensez au courrier électronique) et connectés au même univers, appelé Fediverse. Lemmy est similaire à des sites comme Reddit, Lobste.rs ou Hacker News : vous vous abonnez aux forums qui vous intéressent, publiez des liens et des discussions, puis votez et commentez-les. Dans les coulisses, c'est très différent ; n'importe qui peut facilement exécuter un serveur, et tous ces serveurs sont fédérés (pensez au courrier électronique) et connectés au même univers, appelé Fediverse.
**Version incluse :** 0.18.2~ynh2 **Version incluse :** 0.18.2~ynh3
**Démo :** https://lemmy.ml/ **Démo :** https://lemmy.ml/

View file

@ -5,7 +5,7 @@ name = "Lemmy"
description.en = "Link aggregator/Reddit clone for the fediverse" description.en = "Link aggregator/Reddit clone for the fediverse"
description.fr = "Agrégateur de liens/clone Reddit pour le fedivers" description.fr = "Agrégateur de liens/clone Reddit pour le fedivers"
version = "0.18.2~ynh2" version = "0.18.2~ynh3"
maintainers = [] maintainers = []

View file

@ -101,18 +101,18 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1
# Lemmy configuration # Lemmy configuration
mkdir -p "$install_dir/config/" mkdir -p "$install_dir/config/"
ynh_add_config --template="../conf/lemmy.hjson" --destination="$install_dir/config/config.hjson" ynh_add_config --template="lemmy.hjson" --destination="$install_dir/config/config.hjson"
chmod 400 "$install_dir/config/config.hjson" chmod 400 "$install_dir/config/config.hjson"
chown $app:$app "$install_dir/config/config.hjson" chown $app:$app "$install_dir/config/config.hjson"
# Pict-RS configuration # Pict-RS configuration
ynh_add_config --template="../conf/pict-rs.toml" --destination="$install_dir/pict-rs/pict-rs.toml" ynh_add_config --template="pict-rs.toml" --destination="$install_dir/pict-rs/pict-rs.toml"
chmod 400 "$install_dir/pict-rs/pict-rs.toml" chmod 400 "$install_dir/pict-rs/pict-rs.toml"
chown $app:$app "$install_dir/pict-rs/pict-rs.toml" chown $app:$app "$install_dir/pict-rs/pict-rs.toml"
# ImageMagick configuration # ImageMagick configuration
mkdir -p "$install_dir/.config/ImageMagick" mkdir -p "$install_dir/.config/ImageMagick"
ynh_add_config --template="../conf/policy.xml" --destination="$install_dir/.config/ImageMagick/policy.xml" ynh_add_config --template="policy.xml" --destination="$install_dir/.config/ImageMagick/policy.xml"
chmod 400 "$install_dir/.config/ImageMagick/policy.xml" chmod 400 "$install_dir/.config/ImageMagick/policy.xml"
chown -R $app:$app "$install_dir/.config" chown -R $app:$app "$install_dir/.config"

View file

@ -135,18 +135,22 @@ ynh_script_progression --message="Updating a configuration file..." --weight=1
# Lemmy configuration # Lemmy configuration
mkdir -p "$install_dir/lemmy/" mkdir -p "$install_dir/lemmy/"
ynh_add_config --template="../conf/lemmy.hjson" --destination="$install_dir/config/config.hjson" chown $app:$app "$install_dir/lemmy"
ynh_add_config --template="lemmy.hjson" --destination="$install_dir/config/config.hjson"
chmod 400 "$install_dir/config/config.hjson" chmod 400 "$install_dir/config/config.hjson"
chown $app:$app "$install_dir/config/config.hjson" chown $app:$app "$install_dir/config/config.hjson"
# Pict-RS configuration # Pict-RS configuration
ynh_add_config --template="../conf/pict-rs.toml" --destination="$install_dir/pict-rs/pict-rs.toml" mkdir -p "$install_dir/pict-rs"
chown $app:$app "$install_dir/pict-rs"
ynh_add_config --template="pict-rs.toml" --destination="$install_dir/pict-rs/pict-rs.toml"
chmod 400 "$install_dir/pict-rs/pict-rs.toml" chmod 400 "$install_dir/pict-rs/pict-rs.toml"
chown $app:$app "$install_dir/pict-rs/pict-rs.toml" chown $app:$app "$install_dir/pict-rs/pict-rs.toml"
# ImageMagick configuration # ImageMagick configuration
mkdir -p "$install_dir/.config/ImageMagick" mkdir -p "$install_dir/.config/ImageMagick"
ynh_add_config --template="../conf/policy.xml" --destination="$install_dir/.config/ImageMagick/policy.xml" chown $app:$app -R "$install_dir/.config"
ynh_add_config --template="policy.xml" --destination="$install_dir/.config/ImageMagick/policy.xml"
chmod 400 "$install_dir/.config/ImageMagick/policy.xml" chmod 400 "$install_dir/.config/ImageMagick/policy.xml"
chown -R $app:$app "$install_dir/.config" chown -R $app:$app "$install_dir/.config"