From 6f10e448d6feaa5e3aa0502d7d7bd4e4832bd1c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 29 May 2023 13:49:42 +0200 Subject: [PATCH] Update install --- scripts/install | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/scripts/install b/scripts/install index 279609f..c2665a1 100644 --- a/scripts/install +++ b/scripts/install @@ -16,15 +16,13 @@ ynh_script_progression --message="Setting up source files..." date=`date +%Y-%m-%d` mkdir -p $install_dir -ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="../sources/publishconf.py" -ynh_replace_string --match_string="__PATH__" --replace_string="$path" --target_file="../sources/publishconf.py" -ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="../sources/pelicanconf.py" -ynh_replace_string --match_string="__PATH__" --replace_string="$path" --target_file="../sources/pelicanconf.py" -ynh_replace_string --match_string="__AUTHOR__" --replace_string="$author" --target_file="../sources/pelicanconf.py" -ynh_replace_string --match_string="__TITLE__" --replace_string="$title" --target_file="../sources/pelicanconf.py" -ynh_replace_string --match_string="__AUTHOR__" --replace_string="$author" --target_file="../sources/content/first-article.md" -ynh_replace_string --match_string="__DATE__" --replace_string="$date" --target_file="../sources/content/first-article.md" -cp -a ../sources/. $install_dir + +cp -a ../sources/content/ $install_dir/content/ +ynh_add_config --template="../sources/pelicanconf.py" --destination="$install_dir" +ynh_add_config --template="../sources/publishconf.py" --destination="$install_dir" +ynh_add_config --template="../sources/content/first-article.md" --destination="$install_dir/content/first-article.md" +ynh_add_config --template="../sources/Makefile" --destination="$install_dir/Makefile" +ynh_add_config --template="../sources/tasks.py" --destination="$install_dir/content/tasks.py" chmod 750 "$install_dir" chmod -R o-rwx "$install_dir"