From c27be1b80cbe5605698eeead8e77af4cb131c6a8 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 28 Jun 2021 14:15:34 +0200 Subject: [PATCH] fix --- conf/fr.src | 0 scripts/install | 12 ++++++++++++ 2 files changed, 12 insertions(+) create mode 100644 conf/fr.src diff --git a/conf/fr.src b/conf/fr.src new file mode 100644 index 0000000..e69de29 diff --git a/scripts/install b/scripts/install index 395554a..8437077 100644 --- a/scripts/install +++ b/scripts/install @@ -90,6 +90,18 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" +#================================================= +# DOWNLOAD, CHECK AND UNPACK LANGUAGE PACK +#================================================= + +tmpdir="$(mktemp -d)" +# Download, check integrity, uncompress and patch the source from app.src +ynh_setup_source --dest_dir="$tmpdir" --source_id=fr +cp -a "$tmpdir/language/fr" "$final_path/language/fr" +cp -a "$tmpdir/styles/prosilver/theme/fr" "$final_path/styles/prosilver/theme/fr" +# Remove the tmp directory securely +ynh_secure_remove --file="$tmpdir" + #================================================= # NGINX CONFIGURATION #=================================================