mirror of
https://github.com/YunoHost-Apps/peertube-search-index_ynh.git
synced 2024-09-03 19:56:30 +02:00
Fix installation of version (for check_process)
This commit is contained in:
parent
baacd49237
commit
789b4ce7e7
2 changed files with 9 additions and 7 deletions
|
@ -86,9 +86,11 @@ 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 $REPOSITORY $final_path --quiet
|
|
||||||
|
install -d -o $app -g $app -m 0750 $final_path
|
||||||
|
ynh_exec_as $app git clone $REPOSITORY $final_path --quiet
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
git checkout $COMMIT --quiet
|
ynh_exec_as $app git checkout $COMMIT --quiet
|
||||||
popd
|
popd
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
@ -111,7 +113,7 @@ ynh_add_nginx_config
|
||||||
ynh_script_progression --message="Building..."
|
ynh_script_progression --message="Building..."
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
git submodule update --init --recursive
|
ynh_exec_as $app git submodule update --init --recursive
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
yarn install --pure-lockfile
|
yarn install --pure-lockfile
|
||||||
mkdir "$final_path/dist"
|
mkdir "$final_path/dist"
|
||||||
|
|
|
@ -81,9 +81,9 @@ then
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
git checkout master
|
ynh_exec_as $app git checkout master
|
||||||
git pull --quiet
|
ynh_exec_as $app git pull --quiet
|
||||||
git checkout $COMMIT --quiet
|
ynh_exec_as $app git checkout $COMMIT --quiet
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ st
|
||||||
ynh_script_progression --message="Building..."
|
ynh_script_progression --message="Building..."
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
git submodule update --init --recursive
|
ynh_exec_as $app git submodule update --init --recursive
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
yarn install --pure-lockfile
|
yarn install --pure-lockfile
|
||||||
$ynh_npm run build
|
$ynh_npm run build
|
||||||
|
|
Loading…
Reference in a new issue