mirror of
https://github.com/YunoHost-Apps/dato_ynh.git
synced 2024-09-03 18:16:33 +02:00
Merge pull request #18 from YunoHost-Apps/testing
Corrected upgrade script
This commit is contained in:
commit
576d090d8e
2 changed files with 4 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
"en": "Store all kinds of data with an extremely customizable interface.",
|
"en": "Store all kinds of data with an extremely customizable interface.",
|
||||||
"fr": "Stockez tous types de données avec une interface complètement customizable."
|
"fr": "Stockez tous types de données avec une interface complètement customizable."
|
||||||
},
|
},
|
||||||
"version": "1.5.19~ynh1",
|
"version": "1.5.19~ynh2",
|
||||||
"url": "https://squeak.eauchat.org/dato",
|
"url": "https://squeak.eauchat.org/dato",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
|
|
|
@ -109,6 +109,9 @@ chown -R "$app":"$app" $final_path
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
|
# remove node_modules folder before upgrading (because dato dependencies need to be installed from scratch otherwise some dependencies are not properly upgraded)
|
||||||
|
sudo -u $app env $ynh_node_load_PATH rm -r node_modules
|
||||||
|
# reinstall dependencies from scratch
|
||||||
sudo -u $app env $ynh_node_load_PATH npm install --loglevel warn
|
sudo -u $app env $ynh_node_load_PATH npm install --loglevel warn
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue