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

Revert "Update install"

This reverts commit 6f10e448d6.
This commit is contained in:
Éric Gaspar 2023-05-29 14:13:05 +02:00
parent 6f10e448d6
commit 6abe11ff29

View file

@ -16,13 +16,15 @@ ynh_script_progression --message="Setting up source files..."
date=`date +%Y-%m-%d`
mkdir -p $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"
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
chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir"