mirror of
https://github.com/YunoHost-Apps/etherpad_ynh.git
synced 2024-09-03 18:36:10 +02:00
Update upgrade
This commit is contained in:
parent
9e030c1f9e
commit
bd96fa68eb
1 changed files with 12 additions and 11 deletions
|
@ -120,18 +120,19 @@ chown -R $app: $final_path
|
||||||
pushd "$final_path" || ynh_die
|
pushd "$final_path" || ynh_die
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
ynh_exec_as $app env $ynh_node_load_PATH bin/installDeps.sh
|
ynh_exec_as $app env $ynh_node_load_PATH bin/installDeps.sh
|
||||||
#ynh_exec_warn_less ynh_exec_as $app env "$ynh_node_load_PATH" npm install ep_spellcheck ep_delete_empty_pads ep_subscript_and_superscript ep_headings2 ep_author_hover ep_markdown ep_comments_page ep_align ep_font_color ep_embedded_hyperlinks2
|
ynh_exec_warn_less ynh_exec_as $app env "$ynh_node_load_PATH" npm install ep_spellcheck ep_delete_empty_pads ep_subscript_and_superscript ep_headings2 ep_author_hover ep_markdown ep_comments_page ep_align ep_font_color ep_embedded_hyperlinks2
|
||||||
|
|
||||||
# npm outdated --depth=0 | grep -v "^Package" | awk '{print $1}' | xargs npm install $1 --save-dev
|
|
||||||
OUTDATED=$(npm outdated --depth=0 | grep -v "^Package" | awk '{print $1}')
|
# # npm outdated --depth=0 | grep -v "^Package" | awk '{print $1}' | xargs npm install $1 --save-dev
|
||||||
# echo $OUTDATED
|
# OUTDATED=$(npm outdated --depth=0 | grep -v "^Package" | awk '{print $1}')
|
||||||
if test -n "$OUTDATED"; then
|
# # echo $OUTDATED
|
||||||
echo "Plugins require update, doing this now..."
|
# if test -n "$OUTDATED"; then
|
||||||
echo "Updating $OUTDATED"
|
# echo "Plugins require update, doing this now..."
|
||||||
npm install $OUTDATED --save-dev
|
# echo "Updating $OUTDATED"
|
||||||
else
|
# npm install $OUTDATED --save-dev
|
||||||
echo "Plugins are all up to date"
|
# else
|
||||||
fi
|
# echo "Plugins are all up to date"
|
||||||
|
# fi
|
||||||
|
|
||||||
popd || ynh_die
|
popd || ynh_die
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue