mirror of
https://github.com/YunoHost-Apps/ethercalc_ynh.git
synced 2024-09-03 18:26:36 +02:00
[enh] Code refactoring
This commit is contained in:
parent
419fbff2cd
commit
713074279f
1 changed files with 7 additions and 0 deletions
|
@ -23,6 +23,7 @@ ynh_abort_if_errors
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
path_url="" # Assure la compatibilité avec les fonctions utilisant $path_url
|
path_url="" # Assure la compatibilité avec les fonctions utilisant $path_url
|
||||||
|
expire=YNH_APP_ARG_EXPIRE
|
||||||
|
|
||||||
# This is a multi-instance app, meaning it can be installed several times independently
|
# This is a multi-instance app, meaning it can be installed several times independently
|
||||||
# The id of the app as stated in the manifest is available as $YNH_APP_ID
|
# The id of the app as stated in the manifest is available as $YNH_APP_ID
|
||||||
|
@ -145,6 +146,12 @@ ynh_use_nodejs
|
||||||
sudo_path "$final_path/bin/installDeps.sh" > $install_log 2>&1
|
sudo_path "$final_path/bin/installDeps.sh" > $install_log 2>&1
|
||||||
sudo_path npm install forever -g >> $install_log 2>&1
|
sudo_path npm install forever -g >> $install_log 2>&1
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# CONFIGURE ETHERCALC
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
sudo cp ../conf/settings.json "$final_path/settings.json"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STORE THE CHECKSUM OF THE CONFIG FILE
|
# STORE THE CHECKSUM OF THE CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue