diff --git a/scripts/_common.sh b/scripts/_common.sh index 2490276..2649474 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -6,11 +6,12 @@ # dependencies used by the app pkg_dependencies="git" + extra_pkg_dependencies="elasticsearch-oss" NODEJS_VERSION=12 -source="https://framagit.org/framasoft/peertube/search-index" +REPOSITORY="https://framagit.org/framasoft/peertube/search-index" COMMIT="c29e7f02df4bd5cdfac3696de6d221f1beea041f" diff --git a/scripts/install b/scripts/install index ff05ab1..61f6bea 100644 --- a/scripts/install +++ b/scripts/install @@ -90,7 +90,7 @@ ynh_script_progression --message="Setting up source files..." ynh_app_setting_set --app=$app --key=final_path --value=$final_path # 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" git checkout $COMMIT --quiet popd diff --git a/scripts/upgrade b/scripts/upgrade index 60d71a5..03b8358 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -41,7 +41,7 @@ if ynh_legacy_permissions_exists; then 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)..."