From 686d5850b099bb99ac21674f9b3b3ee9b93fd3b0 Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Fri, 20 Feb 2015 12:14:45 +0100 Subject: [PATCH] update scripts --- conf/ffsync.ini | 12 ------------ scripts/install | 3 ++- 2 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 conf/ffsync.ini diff --git a/conf/ffsync.ini b/conf/ffsync.ini deleted file mode 100644 index ac209ea..0000000 --- a/conf/ffsync.ini +++ /dev/null @@ -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 diff --git a/scripts/install b/scripts/install index 54bbf4d..6836a08 100644 --- a/scripts/install +++ b/scripts/install @@ -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