1
0
Fork 0
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:
Adrien Beudin 2015-02-20 12:14:45 +01:00
parent c6dbb53709
commit 686d5850b0
2 changed files with 2 additions and 13 deletions

View file

@ -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

View file

@ -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