mirror of
https://github.com/YunoHost-Apps/luckysheet_ynh.git
synced 2024-09-03 19:36:21 +02:00
Fix ynh_npm helper
This commit is contained in:
parent
c22120288d
commit
e381055bd0
4 changed files with 12 additions and 17 deletions
|
@ -3,10 +3,10 @@
|
|||
"id": "luckysheet",
|
||||
"packaging_format": 1,
|
||||
"description": {
|
||||
"en": "Online spreadsheet that is powerful, simple to configure, and completely open source.",
|
||||
"fr": "Feuille de calcul en ligne, puissante, simple à configurer et entièrement open source."
|
||||
"en": "Online spreadsheet that is powerful, simple to configure",
|
||||
"fr": "Feuille de calcul en ligne, puissante, simple à configurer"
|
||||
},
|
||||
"version": "2.0.0~ynh3",
|
||||
"version": "2.0.0~ynh4",
|
||||
"url": "https://github.com/mengshukeji/Luckysheet",
|
||||
"license": "MIT",
|
||||
"maintainer": {
|
||||
|
@ -23,8 +23,7 @@
|
|||
"install" : [
|
||||
{
|
||||
"name": "domain",
|
||||
"type": "domain",
|
||||
"example": "domain.org"
|
||||
"type": "domain"
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
|
|
|
@ -102,8 +102,8 @@ ynh_script_progression --message="Building Luckysheet... (this will take some ti
|
|||
pushd "$final_path" || ynh_die
|
||||
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less ynh_npm install
|
||||
ynh_exec_warn_less ynh_npm install gulp -g
|
||||
ynh_exec_warn_less $ynh_npm install
|
||||
ynh_exec_warn_less $ynh_npm install gulp -g
|
||||
|
||||
popd || ynh_die
|
||||
|
||||
|
|
|
@ -35,10 +35,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
|||
#=================================================
|
||||
ynh_script_progression --message="Validating restoration parameters..." --weight=2
|
||||
|
||||
ynh_webpath_available --domain=$domain --path_url=$path_url \
|
||||
|| ynh_die --message="Path not available: ${domain}${path_url}"
|
||||
test ! -d $final_path \
|
||||
|| ynh_die --message="There is already a directory: $final_path "
|
||||
test ! -d $final_path || ynh_die --message="There is already a directory: $final_path "
|
||||
|
||||
#=================================================
|
||||
# STANDARD RESTORATION STEPS
|
||||
|
|
|
@ -111,12 +111,11 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
|||
then
|
||||
ynh_script_progression --message="Building Luckysheet... (this will take some time and resources!)" --weight=20
|
||||
|
||||
pushd "$final_path" || ynh_die
|
||||
|
||||
pushd "$final_path"
|
||||
ynh_use_nodejs
|
||||
ynh_npm install
|
||||
ynh_npm install gulp -g
|
||||
popd || ynh_die
|
||||
$ynh_npm install
|
||||
$ynh_npm install gulp -g
|
||||
popd
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue