More directories
This commit is contained in:
parent
83116a81c4
commit
cb729529ef
|
@ -10002,7 +10002,7 @@ function install_media_server {
|
||||||
echo $'No data directory found'
|
echo $'No data directory found'
|
||||||
exit 625728
|
exit 625728
|
||||||
fi
|
fi
|
||||||
cp -a $MEDIA_SERVER_WORKING_DIRECTORY/data $MEDIA_SERVER_WORKING_DIRECTORY
|
cp -r $MEDIA_SERVER_WORKING_DIRECTORY/data/* $MEDIA_SERVER_WORKING_DIRECTORY
|
||||||
paster setup-app deployment.ini
|
paster setup-app deployment.ini
|
||||||
|
|
||||||
# add uwsgi to deployment.ini
|
# add uwsgi to deployment.ini
|
||||||
|
@ -10022,8 +10022,8 @@ function install_media_server {
|
||||||
# script to be called by the daemon
|
# script to be called by the daemon
|
||||||
echo '#!/bin/bash' > /usr/bin/start-mediadrop
|
echo '#!/bin/bash' > /usr/bin/start-mediadrop
|
||||||
echo "cd ${MEDIA_SERVER_WORKING_DIRECTORY}" >> /usr/bin/start-mediadrop
|
echo "cd ${MEDIA_SERVER_WORKING_DIRECTORY}" >> /usr/bin/start-mediadrop
|
||||||
echo "uwsgi --ini-paste deployment.ini" >> /usr/bin/start-mediadrop
|
echo "${MEDIA_SERVER_WORKING_DIRECTORY}/deployment-scripts/uwsgi --ini-paste ${MEDIA_SERVER_BASE_DIRECTORY}/deployment.ini" >> /usr/bin/start-mediadrop
|
||||||
echo "paster serve --reload deployment.ini" >> /usr/bin/start-mediadrop
|
echo "${MEDIA_SERVER_BASE_DIRECTORY}/venv/bin/paster serve --reload ${MEDIA_SERVER_BASE_DIRECTORY}/deployment.ini" >> /usr/bin/start-mediadrop
|
||||||
chmod +x /usr/bin/start-mediadrop
|
chmod +x /usr/bin/start-mediadrop
|
||||||
|
|
||||||
# create daemon
|
# create daemon
|
||||||
|
|
Loading…
Reference in New Issue