Commit 91f20433 authored by Angelo Compagnucci's avatar Angelo Compagnucci Committed by Thomas Petazzoni
Browse files

package/python-web2py: move password generation



This commit moves the password generation as a post build step.
This prepares the option to remove the admin panel from
installation.

Signed-off-by: default avatarAngelo Compagnucci <angelo.compagnucci@gmail.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 5316495c
......@@ -29,11 +29,16 @@ PYTHON_WEB2PY_EXCLUSIONS = \
setup.py \
tox.ini
define PYTHON_WEB2PY_INSTALL_TARGET_CMDS
define PYTHON_WEB2PY_GENERATE_PASSWORD
$(HOST_DIR)/bin/python2 -c 'import os; \
os.chdir("$(@D)"); \
from gluon.main import save_password; \
save_password($(BR2_PACKAGE_PYTHON_WEB2PY_PASSWORD),8000)'
endef
PYTHON_WEB2PY_POST_BUILD_HOOKS += PYTHON_WEB2PY_GENERATE_PASSWORD
define PYTHON_WEB2PY_INSTALL_TARGET_CMDS
mkdir -p $(TARGET_DIR)/var/www/web2py
rsync -a $(@D)/ $(TARGET_DIR)/var/www/web2py/ \
$(addprefix --exclude=,$(PYTHON_WEB2PY_EXCLUSIONS))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment