1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/tooljet_ynh.git synced 2024-10-01 13:34:55 +02:00
This commit is contained in:
Tagadda 2022-02-10 00:54:29 +00:00 committed by Tagada
parent b89234114b
commit de578a0678
2 changed files with 15 additions and 21 deletions

View file

@ -1,15 +1,8 @@
### After installation
TODO
### Limitations
* This app requites a full dedicated domain (or subdomain). * This app requites a full dedicated domain (or subdomain).
* SSO does *not* work. * Single Sign-On and LDAP integration does *not* work.
* Any known limitations, constrains or stuff not working, such as (but not limited to):
* requiring a full dedicated domain ?
* architectures not supported ?
* not-working single-sign on or LDAP integration ?
* the app requires an important amount of RAM / disk / .. to install or to work properly
* etc...
* Other infos that people should be aware of, such as:
* any specific step to perform after installing (such as manually finishing the install, specific admin credentials, ...)
* how to configure / administrate the application if it ain't obvious
* upgrade process / specificities / things to be aware of ?
* security considerations ?

View file

@ -128,11 +128,11 @@ ynh_script_progression --message="Building ToolJet..." --time --weight=1
pushd $final_path pushd $final_path
ynh_use_nodejs ynh_use_nodejs
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install -f
# Needed ? # Needed ?
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --prefix plugins ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --prefix plugins -f
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --prefix server ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --prefix server -f
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --prefix frontend ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --prefix frontend -f
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run build ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run build
@ -145,11 +145,12 @@ popd
#================================================= #=================================================
ynh_script_progression --message="Adding a configuration file..." --time --weight=1 ynh_script_progression --message="Adding a configuration file..." --time --weight=1
# FIXME: package linter don't like openssl rand... Use ynh_string_random and some dirty hack to get a hex-only string # package_linter don't like `openssl rand -hex`...
lockbox_master_key=$(openssl rand -hex 32) # Use ynh_string_random and some magic stuff to get a 32 bytes hex-only string
lockbox_master_key=$(ynh_string_random --length=32 | xxd -p | head -n1 | cut -c 1-32)
ynh_app_setting_set --app="$app" --key=lockbox_master_key --value="$lockbox_master_key" ynh_app_setting_set --app="$app" --key=lockbox_master_key --value="$lockbox_master_key"
secret_key_base=$(openssl rand -hex 64) secret_key_base=$(ynh_string_random --length=64 | xxd -p | head -n1 | cut -c 1-64)
ynh_app_setting_set --app="$app" --key=secret_key_base --value="$secret_key_base" ynh_app_setting_set --app="$app" --key=secret_key_base --value="$secret_key_base"
ynh_add_config --template=".env.example" --destination="$final_path/.env" ynh_add_config --template=".env.example" --destination="$final_path/.env"