update scripts

pull/3/head
Adrien Beudin 10 years ago
parent c6dbb53709
commit 686d5850b0

@ -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 -a ../sources/* $final_path
sudo cp ../conf/ffsync /etc/init.d/ sudo cp ../conf/ffsync /etc/init.d/
sudo cp ../conf/ffsync.logrotate /etc/logrotate.d/ffsync 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 # Set permissions to ffsync directory
sudo useradd ffsync -d $final_path sudo useradd ffsync -d $final_path
@ -69,7 +71,6 @@ fi
# Fix permission # Fix permission
sudo find $final_path/ -type d -exec chmod 2755 {} \; sudo find $final_path/ -type d -exec chmod 2755 {} \;
sudo find $final_path/ -type f -exec chmod g+r,o+r {} \; sudo find $final_path/ -type f -exec chmod g+r,o+r {} \;
sudo usermod -a -G ffsync www-data
#enable services #enable services
sudo chmod +x /etc/init.d/ffsync sudo chmod +x /etc/init.d/ffsync

Loading…
Cancel
Save