update scripts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user