mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Root install by default
This commit is contained in:
parent
22d9ba284b
commit
44d6729611
1 changed files with 6 additions and 6 deletions
|
@ -361,14 +361,14 @@ check_test_result_remove () {
|
||||||
is_install_failed () {
|
is_install_failed () {
|
||||||
# Check if an install have previously work
|
# Check if an install have previously work
|
||||||
|
|
||||||
if [ $RESULT_check_root -eq 1 ]
|
if [ $RESULT_check_sub_dir -eq 1 ]
|
||||||
then
|
then
|
||||||
# If root installation worked, return root.
|
# If subdir installation worked.
|
||||||
echo root
|
|
||||||
elif [ $RESULT_check_sub_dir -eq 1 ] || [ $force_install_ok -eq 1 ]
|
|
||||||
then
|
|
||||||
# If subdir installation worked or force_install_ok setted, return subdir.
|
|
||||||
echo subdir
|
echo subdir
|
||||||
|
elif [ $RESULT_check_root -eq 1 ] || [ $force_install_ok -eq 1 ]
|
||||||
|
then
|
||||||
|
# If root installation worked, return root or force_install_ok setted, return root.
|
||||||
|
echo root
|
||||||
else
|
else
|
||||||
ECHO_FORMAT "All installs failed, impossible to perform this test...\n" "red" clog
|
ECHO_FORMAT "All installs failed, impossible to perform this test...\n" "red" clog
|
||||||
return 1
|
return 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue