1
0
Fork 0
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:
Rafi59 2017-06-27 14:13:58 +02:00 committed by GitHub
parent 419fbff2cd
commit 713074279f

View file

@ -23,6 +23,7 @@ ynh_abort_if_errors
domain=$YNH_APP_ARG_DOMAIN
is_public=$YNH_APP_ARG_IS_PUBLIC
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
# 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 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
#=================================================