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:
parent
525b738d45
commit
d024da9b82
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue