mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
Use ExMachina already in Plinth/vendor.
This commit is contained in:
parent
87753531d2
commit
c99f074f22
3
Makefile
3
Makefile
@ -4,6 +4,7 @@ CSS=$(wildcard *.css)
|
||||
CSS=$(subst .tiny,,$(shell find themes -type f -name '*.css'))
|
||||
COMPRESSED_CSS := $(patsubst %.css,%.tiny.css,$(CSS))
|
||||
PWD=`pwd`
|
||||
BUILDDIR=vendor
|
||||
|
||||
# hosting variables
|
||||
SLEEP_TIME=300
|
||||
@ -29,6 +30,8 @@ install: default
|
||||
$(DESTDIR)/usr/share/doc/plinth $(DESTDIR)/usr/share/man/man1
|
||||
cp -a static themes $(DESTDIR)$(DATADIR)/
|
||||
cp -a *.py modules templates $(DESTDIR)$(PYDIR)/
|
||||
mkdir -p $(DESTDIR)$(PYDIR)/exmachina
|
||||
cp -a vendor/exmachina/exmachina.py $(DESTDIR)$(PYDIR)/exmachina/.
|
||||
cp share/init.d/plinth $(DESTDIR)/etc/init.d
|
||||
install plinth $(DESTDIR)/usr/bin/
|
||||
mkdir -p $(DESTDIR)/var/lib/plinth/cherrypy_sessions $(DESTDIR)/var/log/plinth $(DESTDIR)/var/run
|
||||
|
||||
@ -114,7 +114,7 @@ def setup():
|
||||
pass
|
||||
|
||||
try:
|
||||
from exmachina import ExMachinaClient
|
||||
from vendor.exmachina.exmachina import ExMachinaClient
|
||||
except ImportError:
|
||||
cfg.exmachina = None
|
||||
print "unable to import exmachina client library, but continuing anyways..."
|
||||
|
||||
2
start.sh
2
start.sh
@ -5,6 +5,6 @@
|
||||
export PYTHONPATH
|
||||
|
||||
sudo killall exmachina.py
|
||||
sudo /usr/share/pyshared/exmachina/exmachina.py -v &
|
||||
sudo vendor/exmachina/exmachina.py -v &
|
||||
python plinth.py
|
||||
sudo killall exmachina.py
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user