|
|
@ -40,11 +40,11 @@ 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 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
|
|
|
|
sudo chown ffsync:ffsync -R $final_path
|
|
|
|
sudo chown ffsync:ffsync -R $final_path
|
|
|
|
|
|
|
|
sudo chown ffsync /var/log/ffsync.log
|
|
|
|
|
|
|
|
|
|
|
|
# Modify Nginx configuration file and copy it to Nginx conf directory
|
|
|
|
# Modify Nginx configuration file and copy it to Nginx conf directory
|
|
|
|
secret=$(head -c 20 /dev/urandom | sha1sum | cut -d " " -f1)
|
|
|
|
secret=$(head -c 20 /dev/urandom | sha1sum | cut -d " " -f1)
|
|
|
|