mirror of
https://github.com/YunoHost-Apps/peertube-search-index_ynh.git
synced 2024-09-03 19:56:30 +02:00
Fix upgrade from 0.0.1.2022.06.03~ynh1
This commit is contained in:
parent
789b4ce7e7
commit
1884cd0f90
2 changed files with 11 additions and 5 deletions
|
@ -115,9 +115,9 @@ ynh_script_progression --message="Building..."
|
|||
pushd "$final_path"
|
||||
ynh_exec_as $app git submodule update --init --recursive
|
||||
ynh_use_nodejs
|
||||
yarn install --pure-lockfile
|
||||
mkdir "$final_path/dist"
|
||||
$ynh_npm run build
|
||||
ynh_exec_as $app env $ynh_node_load_PATH yarn install --pure-lockfile
|
||||
ynh_exec_as $app mkdir -p "$final_path/dist"
|
||||
ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm run build
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -63,6 +63,11 @@ if ynh_legacy_permissions_exists; then
|
|||
ynh_app_setting_delete --app=$app --key=is_public
|
||||
fi
|
||||
|
||||
# Fix upgrade from 0.0.1.2022.06.03~ynh1
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:$app "$final_path"
|
||||
|
||||
#=================================================
|
||||
# CREATE DEDICATED USER
|
||||
#=================================================
|
||||
|
@ -121,8 +126,9 @@ ynh_script_progression --message="Building..."
|
|||
pushd "$final_path"
|
||||
ynh_exec_as $app git submodule update --init --recursive
|
||||
ynh_use_nodejs
|
||||
yarn install --pure-lockfile
|
||||
$ynh_npm run build
|
||||
ynh_exec_as $app env $ynh_node_load_PATH yarn install --pure-lockfile
|
||||
ynh_exec_as $app mkdir -p "$final_path/dist"
|
||||
ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm run build
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue