mirror of
https://github.com/YunoHost-Apps/immich_ynh.git
synced 2024-09-03 20:36:24 +02:00
Fix
This commit is contained in:
parent
6a96007b1c
commit
7a3f3d17ef
3 changed files with 16 additions and 11 deletions
|
@ -164,7 +164,7 @@ myynh_install_immich() {
|
|||
ynh_add_config --template="immich-server-start.sh" --destination="$install_dir/app/start.sh"
|
||||
chmod +x "$install_dir/app/start.sh"
|
||||
cd "$install_dir/app/"
|
||||
"$ynh_npm" cache clean --force
|
||||
ynh_exec_warn_less "$ynh_npm" cache clean --force
|
||||
|
||||
# Install immich-machine-learning
|
||||
cd "$tmpdir/machine-learning"
|
||||
|
|
|
@ -6,9 +6,6 @@
|
|||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
# read -p "Continue [Y] ? " reponse
|
||||
# [[ $reponse == "Y" ]] || ynh_die
|
||||
|
||||
#=================================================
|
||||
# APP "BUILD" (DEPLOYING SOURCES, VENV, COMPILING ETC)
|
||||
#=================================================
|
||||
|
|
|
@ -27,6 +27,21 @@ ynh_restore_file --origin_path="$data_dir" --not_mandatory
|
|||
|
||||
chown -R $app:$app "$data_dir"
|
||||
|
||||
#=================================================
|
||||
# INSTALL NODEJS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Reinstalling nodejs..." --weight=5
|
||||
|
||||
ynh_exec_warn_less ynh_install_nodejs --nodejs_version="$nodejs_version"
|
||||
|
||||
#=================================================
|
||||
# CHECK PYTHON VERSION AND COMPILE IF NEEDED
|
||||
#=================================================
|
||||
ynh_script_progression --message="Check Python version & compile the required one if needed..." --weight=1
|
||||
|
||||
py_required_version=$(ynh_app_setting_get --app="$app" --key=python)
|
||||
myynh_install_python --python="$py_required_version"
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE DATABASE
|
||||
#=================================================
|
||||
|
@ -36,13 +51,6 @@ db_pwd=$(ynh_app_setting_get --app="$app" --key=psql_pwd)
|
|||
myynh_create_psql_db
|
||||
myynh_restore_psql_db
|
||||
|
||||
#=================================================
|
||||
# INSTALL NODEJS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Reinstalling nodejs..." --weight=5
|
||||
|
||||
ynh_exec_warn_less ynh_install_nodejs --nodejs_version="$nodejs_version"
|
||||
|
||||
#=================================================
|
||||
# RESTORE SYSTEM CONFIGURATIONS
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue