mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Todo list \o/
This commit is contained in:
parent
8f2ce51ccb
commit
b425b10f41
2 changed files with 47 additions and 0 deletions
|
@ -231,8 +231,10 @@ app:
|
|||
arguments:
|
||||
app:
|
||||
help: App to install
|
||||
ask: "AppID or path to app archive"
|
||||
-d:
|
||||
full: --domain
|
||||
pattern: '^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$'
|
||||
-p:
|
||||
full: --path
|
||||
-l:
|
||||
|
|
|
@ -75,3 +75,48 @@ def app_list(offset=None, limit=None):
|
|||
}
|
||||
|
||||
return list_dict
|
||||
|
||||
def app_install(app, domain=None, path=None, label=None, public=False, protected=True):
|
||||
"""
|
||||
Install selected app
|
||||
|
||||
Keyword arguments:
|
||||
app -- AppID to install (or filename)
|
||||
domain -- Web domain for the app
|
||||
path -- Subpath of the domain
|
||||
label -- User defined name for the app
|
||||
public -- Allow app public access
|
||||
protected -- App is protected by the SSO
|
||||
|
||||
Returns:
|
||||
Win | Fail
|
||||
|
||||
"""
|
||||
|
||||
# TODO: Check if the app is already installed
|
||||
|
||||
# TODO: Check if app is a file or part of the list.json
|
||||
|
||||
# TODO: Fetch git or unzip/untar archive
|
||||
|
||||
# TODO: Check if exists another instance
|
||||
|
||||
# TODO: Create domain
|
||||
|
||||
# TODO: Install dependencies
|
||||
|
||||
# TODO: Exec install script
|
||||
|
||||
# TODO: Check if MYSQL DB is needed and create it, then init DB if needed
|
||||
|
||||
# TODO: Copy files to the right place
|
||||
|
||||
# TODO: Exec postinstall script
|
||||
|
||||
# TODO: Create appsettings
|
||||
|
||||
# TODO: Configure apache/lemon with NPZE's scripts
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue