1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wikijs_ynh.git synced 2024-09-03 20:36:09 +02:00

Fix upgrade

This commit is contained in:
Yalh 2019-01-30 04:17:53 +01:00
parent 6480d97727
commit 646b6cb453

View file

@ -76,7 +76,7 @@ path_url=$(ynh_normalize_url_path $path_url)
#=================================================
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source "$final_path"
#ynh_setup_source "$final_path"
( cd $final_path && git pull )
#=================================================
@ -113,6 +113,17 @@ ynh_system_user_create $app
# ...
#=================================================
pushd $final_path
ynh_use_nodejs
npm install "graphql@^0.13.1"
npm install "acorn@^6.0.0"
npm install "babel-core@>=6.0.20"
npm install "eslint@>=5.0.0"
npm install
npm audit fix
npm run build
popd
### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script.
### And create a backup of this file if the checksum is different. So the file will be backed up if the admin had modified it.
ynh_backup_if_checksum_is_different "$final_path/config.yml"