mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Moar fixes
This commit is contained in:
parent
446d7fc7c5
commit
5c8290511b
1 changed files with 3 additions and 3 deletions
|
@ -89,7 +89,7 @@ INSTALL_APP () {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install the application in a LXC container
|
# Install the application in a LXC container
|
||||||
RUN_YUNOHOST_CMD "app install --force /app_folder -a '$install_args'"
|
RUN_YUNOHOST_CMD "app install --force /app_folder -a $install_args"
|
||||||
|
|
||||||
local ret=$?
|
local ret=$?
|
||||||
[ $ret -eq 0 ] && log_debug "Installation successful." || log_error "Installation failed."
|
[ $ret -eq 0 ] && log_debug "Installation successful." || log_error "Installation failed."
|
||||||
|
@ -277,7 +277,7 @@ VALIDATE_THAT_APP_CAN_BE_ACCESSED () {
|
||||||
If you see this page, you have failed the test for alias_traversal issue.</body></html>" \
|
If you see this page, you have failed the test for alias_traversal issue.</body></html>" \
|
||||||
> $TEST_CONTEXT/alias_traversal.html
|
> $TEST_CONTEXT/alias_traversal.html
|
||||||
|
|
||||||
sudo lxc file push $TEST_CONTEXT $LXC_NAME/var/www/html/alias_traversal.html
|
sudo lxc file push $TEST_CONTEXT/alias_traversal.html $LXC_NAME/var/www/html/alias_traversal.html
|
||||||
|
|
||||||
curl --location --insecure --silent $check_domain$check_path../html/alias_traversal.html \
|
curl --location --insecure --silent $check_domain$check_path../html/alias_traversal.html \
|
||||||
| grep "title" | grep --quiet "alias_traversal test" \
|
| grep "title" | grep --quiet "alias_traversal test" \
|
||||||
|
@ -970,7 +970,7 @@ set_witness_files () {
|
||||||
# Database
|
# Database
|
||||||
local mysqlpwd=$(RUN_INSIDE_LXC cat /etc/yunohost/mysql)
|
local mysqlpwd=$(RUN_INSIDE_LXC cat /etc/yunohost/mysql)
|
||||||
RUN_INSIDE_LXC mysqladmin --user=root --password="$mysqlpwd" --wait status > /dev/null 2>&1
|
RUN_INSIDE_LXC mysqladmin --user=root --password="$mysqlpwd" --wait status > /dev/null 2>&1
|
||||||
RUN_INSIDE_LXC mysql --user=root --password="$mysqlpwd" --wait --execute="CREATE DATABASE witnessdb" > /dev/null 2>&1
|
echo "CREATE DATABASE witnessdb" | RUN_INSIDE_LXC mysql --user=root --password="$mysqlpwd" --wait > /dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
check_witness_files () {
|
check_witness_files () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue