1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/eleventy_ynh.git synced 2024-09-03 18:26:32 +02:00
This commit is contained in:
Éric Gaspar 2023-05-12 19:16:29 +02:00
parent b5dc8cf852
commit 5966d0ab90
3 changed files with 16 additions and 3 deletions

View file

@ -1,9 +1,9 @@
module.exports = function (eleventyConfig) {
eleventyConfig.addPassthroughCopy("./src/style.css");
eleventyConfig.addPassthroughCopy("__DATA_DIR__/src/style.css");
return {
dir: {
input: "src",
output: "public",
input: "__DATA_DIR__/src",
output: "__DATA_DIR__/public",
},
};
};

View file

@ -46,6 +46,9 @@ ram.runtime = "50M"
[resources.install_dir]
[resources.data_dir]
subdirs = ["src", "public"]
[resources.permissions]
main.url = "/"

View file

@ -19,6 +19,16 @@ ynh_restore_file --origin_path="$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
# RESTORE THE DATA DIRECTORY
#=================================================
ynh_script_progression --message="Restoring the data directory..." --weight=1
ynh_restore_file --origin_path="$data_dir" --not_mandatory
# (Same as for install dir)
chown -R $app:www-data "$data_dir"
#=================================================
# RESTORE SYSTEM CONFIGURATIONS
#=================================================