modified urls

This commit is contained in:
Pierre-Antoine Rault
2016-12-14 03:29:16 +01:00
parent 6d15a15a01
commit 4d96a462cf
4 changed files with 30 additions and 64 deletions

View File

@@ -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