1
0
Fork 0
forked from github/pelican

Generate output directory before 'CD'ing into it.

If the output directory does not exist the 'cd' will fail, but the
script will resume, starting the server in the base directory. Therefore
we first make sure the output directory actually exists.
This commit is contained in:
HiPhish 2015-11-14 00:17:09 +01:00
commit 1fe40db3cb

View file

@ -65,7 +65,7 @@ function start_up(){
$$PELICAN --debug --autoreload -r $$INPUTDIR -o $$OUTPUTDIR -s $$CONFFILE $$PELICANOPTS &
pelican_pid=$$!
echo $$pelican_pid > $$PELICAN_PID
cd $$OUTPUTDIR
mkdir -p $$OUTPUTDIR && cd $$OUTPUTDIR
$PY -m pelican.server $$port &
srv_pid=$$!
echo $$srv_pid > $$SRV_PID