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:
commit
c84c8c4cd9
5 changed files with 13 additions and 9 deletions
|
@ -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/
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ Si vous n’avez 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/
|
||||||
|
|
||||||
|
|
|
@ -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 = []
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue