From 98c005dc2278b5a4818972271c77e97b6acfe0ca Mon Sep 17 00:00:00 2001 From: Ylies Chahi Date: Sun, 13 Aug 2017 01:49:17 +0200 Subject: [PATCH 1/2] Update install --- scripts/install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 43e70b6..3c4976a 100644 --- a/scripts/install +++ b/scripts/install @@ -27,9 +27,9 @@ 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 sed -i "s@YNH_APP_URL@https://$domain@g" ../sources/pelicanconf.py +sudo sed -i "s@YNH_APP_AUTHOR@$author@g" ../sources/pelicanconf.py +sudo sed -i "s@YNH_APP_SITENAME@$title@g" ../sources/pelicanconf.py sudo cp -a ../sources/* $document_root cd $document_root @@ -47,7 +47,7 @@ sudo apt-get install -y python-pip python-virtualenv python-dev libldap2-dev lib pip install pelican markdown # Generate the blog -pelican -s publishconf.py +pelican -s pelicanconf.py # Set permissions sudo chmod 775 -R $document_root From eebcedd87e1fa7718717915c0327c4d9e18dedec Mon Sep 17 00:00:00 2001 From: Ylies Chahi Date: Sun, 13 Aug 2017 02:14:21 +0200 Subject: [PATCH 2/2] Update install --- scripts/install | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/install b/scripts/install index 3c4976a..5b6e33b 100644 --- a/scripts/install +++ b/scripts/install @@ -15,8 +15,6 @@ is_public=$YNH_APP_ARG_IS_PUBLIC author=$YNH_APP_ARG_AUTHOR title=$YNH_APP_ARG_TITLE -# Remove trailing slash to path -path=${path%/} #force location to be / or /foo location=${path:-/}