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 () {
|
||||
# Check if an install have previously work
|
||||
|
||||
if [ $RESULT_check_root -eq 1 ]
|
||||
if [ $RESULT_check_sub_dir -eq 1 ]
|
||||
then
|
||||
# If root installation worked, return root.
|
||||
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.
|
||||
# If subdir installation worked.
|
||||
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
|
||||
ECHO_FORMAT "All installs failed, impossible to perform this test...\n" "red" clog
|
||||
return 1
|
||||
|
|
Loading…
Add table
Reference in a new issue