mirror of
https://github.com/YunoHost-Apps/ffsync_ynh.git
synced 2024-09-03 18:26:38 +02:00
update scripts
This commit is contained in:
parent
c6dbb53709
commit
686d5850b0
2 changed files with 2 additions and 13 deletions
|
@ -1,12 +0,0 @@
|
|||
[uwsgi]
|
||||
chmod-socket = 660
|
||||
master = true
|
||||
enable-threads = true
|
||||
workers = 2
|
||||
no-orphans = true
|
||||
log-date = true
|
||||
uid = ffsync
|
||||
gid = ffsync
|
||||
pythonpath = /opt/yunohost/ffsync/local/lib/python2.7/site-packages
|
||||
wsgi-file = /opt/yunohost/ffsync/syncserver.wsgi
|
||||
vacuum = true
|
|
@ -39,6 +39,8 @@ sudo mkdir -p $final_path
|
|||
sudo cp -a ../sources/* $final_path
|
||||
sudo cp ../conf/ffsync /etc/init.d/
|
||||
sudo cp ../conf/ffsync.logrotate /etc/logrotate.d/ffsync
|
||||
sudo touch /var/log/ffsync.log
|
||||
sudo chown ffsync /var/log/ffsync.log
|
||||
|
||||
# Set permissions to ffsync directory
|
||||
sudo useradd ffsync -d $final_path
|
||||
|
@ -69,7 +71,6 @@ fi
|
|||
# Fix permission
|
||||
sudo find $final_path/ -type d -exec chmod 2755 {} \;
|
||||
sudo find $final_path/ -type f -exec chmod g+r,o+r {} \;
|
||||
sudo usermod -a -G ffsync www-data
|
||||
|
||||
#enable services
|
||||
sudo chmod +x /etc/init.d/ffsync
|
||||
|
|
Loading…
Reference in a new issue