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

Update install

This commit is contained in:
Éric Gaspar 2023-05-29 13:49:42 +02:00
parent 765a0dc272
commit 6f10e448d6

View file

@ -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"