1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/crabfit_ynh.git synced 2024-09-03 18:16:21 +02:00

rebuild only if upgrade is app

This commit is contained in:
oiseauroch 2024-03-10 11:10:20 +01:00
parent 30a1bbc0aa
commit a6628075bb

View file

@ -75,14 +75,14 @@ then
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" ynh_setup_source --dest_dir="$install_dir"
chown -R $app:$app "$install_dir"
chmod -R o-rwx "$install_dir"
fi fi
ynh_install_nodejs --nodejs_version=$nodejs_version ynh_install_nodejs --nodejs_version=$nodejs_version
ynh_use_nodejs ynh_use_nodejs
chown -R $app:$app "$install_dir"
chmod -R o-rwx "$install_dir"
#================================================= #=================================================
# REAPPLY SYSTEM CONFIGURATIONS # REAPPLY SYSTEM CONFIGURATIONS
#================================================= #=================================================
@ -132,17 +132,20 @@ chown $app:$app "$install_dir/api/.env"
### ynh_replace_string --match_string="match_string" --replace_string="replace_string" --target_file="$install_dir/some_config_file" ### ynh_replace_string --match_string="match_string" --replace_string="replace_string" --target_file="$install_dir/some_config_file"
### ynh_store_file_checksum --file="$install_dir/some_config_file" ### ynh_store_file_checksum --file="$install_dir/some_config_file"
#================================================= if [ "$upgrade_type" == "UPGRADE_APP" ]
# BUILD BACKEND then
#================================================= #=================================================
ynh_script_progression --message="Building crabfit backend..." --weight=10 # BUILD BACKEND
build_backend #=================================================
ynh_script_progression --message="Building crabfit backend..." --weight=10
build_backend
#================================================= #=================================================
# BUILD FRONTEND # BUILD FRONTEND
#================================================= #=================================================
ynh_script_progression --message="Building crabfit frontend..." --weight=2 ynh_script_progression --message="Building crabfit frontend..." --weight=2
build_frontend build_frontend
fi
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE