Data directory

This commit is contained in:
Bob Mottram 2016-06-18 15:07:02 +01:00
parent 8bc31ba1d1
commit c35aa87649
1 changed files with 5 additions and 1 deletions

View File

@ -9998,7 +9998,11 @@ function install_media_server {
sed -i 's|files_serve_method.*|files_serve_method = nginx_redirect|g' deployment.ini
# initial data
cp -a data .
if [ ! -d $MEDIA_SERVER_WORKING_DIRECTORY/data ]; then
echo $'No data directory found'
exit 625728
fi
cp -a $MEDIA_SERVER_WORKING_DIRECTORY/data $MEDIA_SERVER_WORKING_DIRECTORY
paster setup-app deployment.ini
# add uwsgi to deployment.ini