mirror of
https://github.com/YunoHost/lxd_img_builder.git
synced 2024-09-03 19:56:55 +02:00
Update image_builder: reneable password strength check for core-test image
This commit is contained in:
parent
e10d9a9d93
commit
87c61cd009
1 changed files with 5 additions and 1 deletions
|
@ -269,9 +269,9 @@ function rebuild()
|
||||||
local TEST_USER="package_checker"
|
local TEST_USER="package_checker"
|
||||||
local TEST_USER_DISPLAY=${TEST_USER//"_"/""}
|
local TEST_USER_DISPLAY=${TEST_USER//"_"/""}
|
||||||
|
|
||||||
# Disable password strength check
|
|
||||||
$IN_CONTAINER yunohost tools postinstall --domain $DOMAIN --password $YUNO_PWD --username $TEST_USER --fullname "$TEST_USER_DISPLAY"
|
$IN_CONTAINER yunohost tools postinstall --domain $DOMAIN --password $YUNO_PWD --username $TEST_USER --fullname "$TEST_USER_DISPLAY"
|
||||||
|
|
||||||
|
# Disable password strength check for convenience on the app CI
|
||||||
$IN_CONTAINER /bin/bash -c "echo 'admin_strength: -1' >> /etc/yunohost/settings.yml"
|
$IN_CONTAINER /bin/bash -c "echo 'admin_strength: -1' >> /etc/yunohost/settings.yml"
|
||||||
$IN_CONTAINER /bin/bash -c "echo 'user_strength: -1' >> /etc/yunohost/settings.yml"
|
$IN_CONTAINER /bin/bash -c "echo 'user_strength: -1' >> /etc/yunohost/settings.yml"
|
||||||
|
|
||||||
|
@ -283,6 +283,10 @@ function rebuild()
|
||||||
_publish_as "appci"
|
_publish_as "appci"
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
|
# Reneable default password strength check
|
||||||
|
$IN_CONTAINER /bin/bash -c "sed -i '/admin_strength/d' /etc/yunohost/settings.yml"
|
||||||
|
$IN_CONTAINER /bin/bash -c "sed -i '/user_strength/d' /etc/yunohost/settings.yml"
|
||||||
|
|
||||||
CORE_TESTS_APT_DEPENDENCIES="python3-pip"
|
CORE_TESTS_APT_DEPENDENCIES="python3-pip"
|
||||||
CORE_TESTS_PIP_DEPENCENDIES='mock pip pyOpenSSL pytest pytest-cov pytest-mock pytest-sugar requests-mock "packaging<22"'
|
CORE_TESTS_PIP_DEPENCENDIES='mock pip pyOpenSSL pytest pytest-cov pytest-mock pytest-sugar requests-mock "packaging<22"'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue