mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Allow backup_restore action when YunoHost is not postinstalled
This commit is contained in:
parent
dfe373d591
commit
f4e369d4bd
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
# Check that YunoHost is installed
|
# Check that YunoHost is installed
|
||||||
if not os.path.isfile('/etc/yunohost/installed') and \
|
if not os.path.isfile('/etc/yunohost/installed') and \
|
||||||
(len(args) < 2 or args[0] != 'tools' or args[1] != 'postinstall'):
|
(len(args) < 2 or (args[0] +' '+ args[1] != 'tools postinstall' and \
|
||||||
|
args[0] +' '+ args[1] != 'backup restore')):
|
||||||
from moulinette.interfaces.cli import colorize, get_locale
|
from moulinette.interfaces.cli import colorize, get_locale
|
||||||
|
|
||||||
# Init i18n
|
# Init i18n
|
||||||
|
|
Loading…
Add table
Reference in a new issue