mirror of
https://github.com/YunoHost-Apps/tracim_ynh.git
synced 2024-10-01 13:34:52 +02:00
ynh_exec_warn_less
This commit is contained in:
parent
2376395e4f
commit
516dc955d2
3 changed files with 27 additions and 26 deletions
|
@ -78,7 +78,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing dependencies..."
|
ynh_script_progression --message="Installing dependencies..."
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies $build_pkg_dependencies
|
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies $build_pkg_dependencies
|
||||||
ynh_install_nodejs --nodejs_version=$nodejs_version
|
ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||||
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
|
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
|
||||||
|
|
||||||
|
@ -167,29 +167,29 @@ pushd "$final_path/backend"
|
||||||
set +u;
|
set +u;
|
||||||
source env/bin/activate
|
source env/bin/activate
|
||||||
set -u;
|
set -u;
|
||||||
pip install -r requirements-build.txt
|
ynh_exec_warn_less pip install -r requirements-build.txt
|
||||||
pip install -r requirements.txt
|
ynh_exec_warn_less pip install -r requirements.txt
|
||||||
pip install -r requirements-full-preview-generator.txt
|
ynh_exec_warn_less pip install -r requirements-full-preview-generator.txt
|
||||||
pip install -r requirements-db-postgres.txt
|
ynh_exec_warn_less pip install -r requirements-db-postgres.txt
|
||||||
pip install -e "."
|
ynh_exec_warn_less pip install -e "."
|
||||||
mkdir sessions_data sessions_lock previews
|
mkdir sessions_data sessions_lock previews
|
||||||
tracimcli db init
|
ynh_exec_warn_less tracimcli db init
|
||||||
tracimcli user create -e $admin_mail -u $admin --lang $language -p $password --profile administrators
|
ynh_exec_warn_less tracimcli user create -e $admin_mail -u $admin --lang $language -p $password --profile administrators
|
||||||
tracimcli user delete -l admin@admin.admin
|
ynh_exec_warn_less tracimcli user delete -l admin@admin.admin
|
||||||
set +u;
|
set +u;
|
||||||
deactivate
|
deactivate
|
||||||
set -u;
|
set -u;
|
||||||
$ynh_npm install "i18next-conv@<8" -g
|
ynh_exec_warn_less $ynh_npm install "i18next-conv@<8" -g
|
||||||
./update_i18n_json_file.sh || exit 1
|
ynh_exec_warn_less ./update_i18n_json_file.sh || exit 1
|
||||||
popd
|
popd
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
echo 'nodeLinker: node-modules' >> .yarnrc.yml
|
echo 'nodeLinker: node-modules' >> .yarnrc.yml
|
||||||
yarn install
|
ynh_exec_warn_less yarn install
|
||||||
./build_full_frontend.sh
|
ynh_exec_warn_less ./build_full_frontend.sh
|
||||||
popd
|
popd
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
|
|
|
@ -94,7 +94,7 @@ chown -R $app:www-data "$datadir"
|
||||||
ynh_script_progression --message="Reinstalling dependencies..."
|
ynh_script_progression --message="Reinstalling dependencies..."
|
||||||
|
|
||||||
# Define and install dependencies
|
# Define and install dependencies
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
||||||
ynh_install_nodejs --nodejs_version=$nodejs_version
|
ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||||
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
|
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
|
||||||
|
|
||||||
|
|
|
@ -110,7 +110,7 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading dependencies..."
|
ynh_script_progression --message="Upgrading dependencies..."
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies $build_pkg_dependencies
|
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies $build_pkg_dependencies
|
||||||
ynh_install_nodejs --nodejs_version=$nodejs_version
|
ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||||
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
|
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
|
||||||
|
|
||||||
|
@ -143,26 +143,27 @@ pushd "$final_path/backend"
|
||||||
set +u;
|
set +u;
|
||||||
source env/bin/activate
|
source env/bin/activate
|
||||||
set -u;
|
set -u;
|
||||||
pip install -r requirements-build.txt
|
ynh_exec_warn_less pip install -r requirements-build.txt
|
||||||
pip install -r requirements.txt
|
ynh_exec_warn_less ynh_exec_warn_less pip install -r requirements.txt
|
||||||
pip install -r requirements-full-preview-generator.txt
|
ynh_exec_warn_less pip install -r requirements-full-preview-generator.txt
|
||||||
pip install -r requirements-db-postgres.txt
|
ynh_exec_warn_less pip install -r requirements-db-postgres.txt
|
||||||
pip install -e "."
|
ynh_exec_warn_less pip install -e "."
|
||||||
mkdir sessions_data sessions_lock previews
|
mkdir sessions_data sessions_lock previews
|
||||||
|
ynh_exec_warn_less alembic -c development.ini upgrade head
|
||||||
set +u;
|
set +u;
|
||||||
deactivate
|
deactivate
|
||||||
set -u;
|
set -u;
|
||||||
$ynh_npm install "i18next-conv@<8" -g
|
ynh_exec_warn_less $ynh_npm install "i18next-conv@<8" -g
|
||||||
./update_i18n_json_file.sh || exit 1
|
ynh_exec_warn_less ./update_i18n_json_file.sh || exit 1
|
||||||
popd
|
popd
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
echo 'nodeLinker: node-modules' >> .yarnrc.yml
|
echo 'nodeLinker: node-modules' >> .yarnrc.yml
|
||||||
yarn install
|
ynh_exec_warn_less yarn install
|
||||||
./build_full_frontend.sh
|
ynh_exec_warn_less ./build_full_frontend.sh
|
||||||
popd
|
popd
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
|
|
Loading…
Reference in a new issue