1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nocodb_ynh.git synced 2024-09-03 19:56:01 +02:00

Build OracleDB dependency when on ARM64

This commit is contained in:
tituspijean 2022-01-05 21:37:15 +00:00
parent d8af85d68d
commit 19d1744267
2 changed files with 17 additions and 0 deletions

View file

@ -117,6 +117,14 @@ ynh_script_progression --message="Installing NocoDB..." --weight=5
ynh_use_nodejs
pushd $final_path
if [ $YNH_ARCH = "arm64" ]; then
ynh_print_info --message="Retrieving and building OracleDB for ARM64..."
ynh_exec_warn_less ynh_exec_as $app git clone --recursive https://github.com/oracle/node-oracledb.git oracledb
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install ./oracledb
ynh_print_info --message="...Done! Installing NocoDB now..."
fi
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install
popd

View file

@ -107,6 +107,15 @@ ynh_script_progression --message="Upgrading NocoDB..." --weight=5
ynh_use_nodejs
pushd $final_path
if [ $YNH_ARCH = "arm64" ]; then
ynh_print_info --message="Retrieving and building OracleDB for ARM64..."
ynh_secure_remove oracledb
ynh_exec_warn_less ynh_exec_as $app git clone --recursive https://github.com/oracle/node-oracledb.git oracledb
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install ./oracledb
ynh_print_info --message="...Done! Installing NocoDB now..."
fi
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install
popd