1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/peertube_ynh.git synced 2024-09-03 19:56:29 +02:00

fix install and upgrade

This commit is contained in:
yalh76 2019-06-23 16:11:16 +02:00
parent a9b44646b0
commit 97debbcf8b
2 changed files with 4 additions and 4 deletions

View file

@ -71,7 +71,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port
ynh_print_info --message="Installing dependencies..." ynh_print_info --message="Installing dependencies..."
# Install nodejs # Install nodejs
#ynh_install_nodejs --nodejs_version=8 ynh_install_nodejs --nodejs_version=8
# Install dependencies # Install dependencies
ynh_install_app_dependencies $pkg_dependencies ynh_install_app_dependencies $pkg_dependencies
@ -179,7 +179,7 @@ ynh_store_file_checksum --file="$final_path/config/local-production.json"
chown -R "$app":"$app" $final_path chown -R "$app":"$app" $final_path
pushd "$final_path" pushd "$final_path"
#sudo -u $app env PATH=$PATH yarn install --production --pure-lockfile sudo -u $app env PATH=$PATH yarn install --production --pure-lockfile
popd popd
#================================================= #=================================================

View file

@ -133,7 +133,7 @@ ynh_add_nginx_config
ynh_print_info --message="Upgrading dependencies..." ynh_print_info --message="Upgrading dependencies..."
# Install nodejs # Install nodejs
#ynh_install_nodejs --nodejs_version=8 ynh_install_nodejs --nodejs_version=8
# Install dependencies # Install dependencies
ynh_install_app_dependencies $pkg_dependencies ynh_install_app_dependencies $pkg_dependencies
@ -190,7 +190,7 @@ ynh_replace_string --match_string="X-Frame-Options : SAMEORIGIN" --replace_strin
chown -R "$app":"$app" $final_path chown -R "$app":"$app" $final_path
pushd "$final_path" pushd "$final_path"
#sudo -u $app env PATH=$PATH yarn install --production --pure-lockfile sudo -u $app env PATH=$PATH yarn install --production --pure-lockfile
popd popd
#================================================= #=================================================