Make local setup working

This commit is contained in:
uid 2020-10-19 22:02:52 +02:00
parent b6130f42be
commit e33e52df75
2 changed files with 10 additions and 3 deletions

View File

@ -10,12 +10,12 @@ IMG!= ls img/*.png
CSSDIR:= $(PREFIX)/static/$(NAME)/css CSSDIR:= $(PREFIX)/static/$(NAME)/css
CSS!= ls css/*.css CSS!= ls css/*.css
.ifdef TEST ifdef TEST
IMGDIR:= $(PREFIX)/../env/lib/python2.7/site-packages/MoinMoin/web/static/htdocs/$(NAME)/img IMGDIR:= $(PREFIX)/../env/lib/python2.7/site-packages/MoinMoin/web/static/htdocs/$(NAME)/img
CSSDIR:= $(PREFIX)/../env/lib/python2.7/site-packages/MoinMoin/web/static/htdocs/$(NAME)/css CSSDIR:= $(PREFIX)/../env/lib/python2.7/site-packages/MoinMoin/web/static/htdocs/$(NAME)/css
UID!= id -u UID!= id -u
GID!= id -g GID!= id -g
.endif endif
.PHONY: install .PHONY: install
install: install:

View File

@ -26,7 +26,12 @@ Replace `/tmp/moin` with the path you want to install MoinMoin in.
virtualenv -p python2 env virtualenv -p python2 env
source env/bin/activate source env/bin/activate
pip install moin
wget http://static.moinmo.in/files/moin-1.9.10.tar.gz
tar -xvf moin-1.9.10.tar.gz
cd moin-1.9.10
python setup.py install
cd ..
mkdir wiki mkdir wiki
cp -pr env/share/moin/{data,config,underlay} wiki/ cp -pr env/share/moin/{data,config,underlay} wiki/
@ -36,6 +41,8 @@ Replace `/tmp/moin` with the path you want to install MoinMoin in.
sed -i "/FrontPage/s/#//g" wiki/wikiconfig.py sed -i "/FrontPage/s/#//g" wiki/wikiconfig.py
sed -i "/superuser.*YourName/s/#//g" wiki/wikiconfig.py sed -i "/superuser.*YourName/s/#//g" wiki/wikiconfig.py
sed -i "/superuser.*YourName/s/YourName/admin/g" wiki/wikiconfig.py sed -i "/superuser.*YourName/s/YourName/admin/g" wiki/wikiconfig.py
# Change this path with your installation folder
sed -i "/wikiconfig_dir = /s/os\.path\.abspath.*/'\/tmp\/moin\/wiki\/'/g" wiki/wikiconfig.py sed -i "/wikiconfig_dir = /s/os\.path\.abspath.*/'\/tmp\/moin\/wiki\/'/g" wiki/wikiconfig.py
### Installing Acaro in the test environment ### Installing Acaro in the test environment