modified urls
This commit is contained in:
@@ -36,12 +36,16 @@ then
|
||||
sudo swapon $tmp_swap_file
|
||||
fi
|
||||
|
||||
# Modify assets to take path into account
|
||||
sudo find ../sources/syncserver/page/sync_files/ -type f -exec sed -i -e "s@media\/img@$path\/media\/img@g" {} \;
|
||||
|
||||
# Copy files to the right place
|
||||
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
|
||||
|
||||
|
||||
# Set permissions to ffsync directory
|
||||
sudo useradd ffsync -d $final_path
|
||||
sudo chown ffsync:ffsync -R $final_path
|
||||
|
||||
Reference in New Issue
Block a user