Apply last example_ynh

This commit is contained in:
yalh76 2021-04-10 19:17:43 +02:00
parent 5d082698d6
commit 5a51a75d14
3 changed files with 4 additions and 3 deletions

View file

@ -6,11 +6,12 @@
# dependencies used by the app # dependencies used by the app
pkg_dependencies="git" pkg_dependencies="git"
extra_pkg_dependencies="elasticsearch-oss" extra_pkg_dependencies="elasticsearch-oss"
NODEJS_VERSION=12 NODEJS_VERSION=12
source="https://framagit.org/framasoft/peertube/search-index" REPOSITORY="https://framagit.org/framasoft/peertube/search-index"
COMMIT="c29e7f02df4bd5cdfac3696de6d221f1beea041f" COMMIT="c29e7f02df4bd5cdfac3696de6d221f1beea041f"

View file

@ -90,7 +90,7 @@ ynh_script_progression --message="Setting up source files..."
ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
git clone $source $final_path --quiet git clone $REPOSITORY $final_path --quiet
pushd "$final_path" pushd "$final_path"
git checkout $COMMIT --quiet git checkout $COMMIT --quiet
popd popd

View file

@ -41,7 +41,7 @@ if ynh_legacy_permissions_exists; then
fi fi
#================================================= #=================================================
# BACKUP BEFORE CHANGE URL THEN ACTIVE TRAP # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#================================================= #=================================================
ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." ynh_script_progression --message="Backing up the app before upgrading (may take a while)..."