mirror of
https://github.com/YunoHost-Apps/luckysheet_ynh.git
synced 2024-09-03 19:36:21 +02:00
Fix
This commit is contained in:
parent
b66d5c8be6
commit
2ea2c215a4
5 changed files with 13 additions and 17 deletions
|
@ -3,8 +3,8 @@
|
|||
"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",
|
||||
"url": "https://github.com/mengshukeji/Luckysheet",
|
||||
|
@ -13,7 +13,7 @@
|
|||
"name": "eric_G"
|
||||
},
|
||||
"requirements": {
|
||||
"yunohost": ">= 4.1.7"
|
||||
"yunohost": ">= 4.3.0"
|
||||
},
|
||||
"multi_instance": false,
|
||||
"services": [
|
||||
|
@ -23,8 +23,7 @@
|
|||
"install" : [
|
||||
{
|
||||
"name": "domain",
|
||||
"type": "domain",
|
||||
"example": "domain.org"
|
||||
"type": "domain"
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# COMMON VARIABLES
|
||||
#=================================================
|
||||
|
||||
nodejs_version=14
|
||||
nodejs_version=16
|
||||
|
||||
#=================================================
|
||||
# PERSONAL HELPERS
|
||||
|
|
|
@ -99,11 +99,11 @@ ynh_add_nginx_config
|
|||
#==============================================
|
||||
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_exec_warn_less ynh_npm install
|
||||
ynh_exec_warn_less ynh_npm install gulp -g
|
||||
popd || ynh_die
|
||||
ynh_exec_warn_less $ynh_npm install
|
||||
ynh_exec_warn_less $ynh_npm install gulp -g
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
# MODIFY A CONFIG FILE
|
||||
|
|
|
@ -35,8 +35,6 @@ 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 "
|
||||
|
||||
|
|
|
@ -111,11 +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_exec_warn_less $ynh_npm install
|
||||
ynh_exec_warn_less $ynh_npm install gulp -g
|
||||
popd
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
@ -124,7 +124,6 @@ fi
|
|||
ynh_script_progression --message="Configuring a systemd service..." --weight=2
|
||||
|
||||
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service"
|
||||
ynh_replace_string --match_string="__YNH_NPM__" --replace_string="$ynh_npm" --target_file="../conf/systemd.service"
|
||||
|
||||
# Create a dedicated systemd config
|
||||
ynh_add_systemd_config
|
||||
|
|
Loading…
Add table
Reference in a new issue