Fix upgrade
This commit is contained in:
parent
6480d97727
commit
646b6cb453
@ -76,7 +76,7 @@ path_url=$(ynh_normalize_url_path $path_url)
|
|||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# 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 )
|
( 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.
|
### 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.
|
### 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"
|
ynh_backup_if_checksum_is_different "$final_path/config.yml"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user