Ver código fonte

Data directory

Bob Mottram 8 anos atrás
pai
commit
c35aa87649
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5
    1
      src/freedombone

+ 5
- 1
src/freedombone Ver arquivo

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