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