mirror of
https://github.com/YunoHost-Apps/radicale_ynh.git
synced 2024-09-03 20:16:14 +02:00
Update install
This commit is contained in:
parent
90448abed6
commit
fa4d1fe861
1 changed files with 7 additions and 1 deletions
|
@ -48,10 +48,16 @@ sudo chmod g+w /var/log/radicale
|
||||||
sudo cp ../conf/radicale.ini /etc/uwsgi/apps-available/
|
sudo cp ../conf/radicale.ini /etc/uwsgi/apps-available/
|
||||||
sudo ln -s /etc/uwsgi/apps-available/radicale.ini /etc/uwsgi/apps-enabled/
|
sudo ln -s /etc/uwsgi/apps-available/radicale.ini /etc/uwsgi/apps-enabled/
|
||||||
|
|
||||||
## Modify Nginx configuration file and copy it to Nginx conf directory
|
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||||
sudo sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
sudo sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
||||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/radicale.conf
|
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/radicale.conf
|
||||||
|
|
||||||
|
# Fix permission
|
||||||
|
sudo chmod 755 /etc/radicale/
|
||||||
|
sudo find /usr/local/radicale/ -type d -exec chmod 2755 {} \;
|
||||||
|
sudo find /usr/local/radicale/ -type f -exec chmod g+r,o+r {} \;
|
||||||
|
sudo chmod 644 /etc/radicale/*
|
||||||
|
|
||||||
## Reload Nginx and regenerate SSOwat conf
|
## Reload Nginx and regenerate SSOwat conf
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
sudo service uwsgi restart
|
sudo service uwsgi restart
|
||||||
|
|
Loading…
Reference in a new issue