From d024da9b82b33935e47270a95817922692f73768 Mon Sep 17 00:00:00 2001 From: Ylies Chahi Date: Sun, 13 Aug 2017 01:37:42 +0200 Subject: [PATCH] Update install --- scripts/install | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 970e9fc..43e70b6 100644 --- a/scripts/install +++ b/scripts/install @@ -27,8 +27,13 @@ sudo yunohost app checkurl $domain$path -a $app \ # Document root document_root=/var/www/$app sudo mkdir -p $document_root +sudo sed -i "s@https://example.fr@https://$domain@g" ../sources/publishconf.py +sudo sed -i "s@YNH_APP_AUTHOR@$author@g" ../sources/publishconf.py +sudo sed -i "s@YNH_APP_SITENAME@$title@g" ../sources/publishconf.py sudo cp -a ../sources/* $document_root +cd $document_root + # Store settings from manifest ynh_app_setting_set $app domain $domain ynh_app_setting_set $app path $path @@ -42,9 +47,6 @@ sudo apt-get install -y python-pip python-virtualenv python-dev libldap2-dev lib pip install pelican markdown # Generate the blog -sudo sed -i "s@https://example.fr@https://$domain@g" publishconf.py -sudo sed -i "s@YNH_APP_AUTHOR@$author@g" publishconf.py -sudo sed -i "s@YNH_APP_SITENAME@$title@g" publishconf.py pelican -s publishconf.py # Set permissions