1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ethercalc_ynh.git synced 2024-09-03 18:26:36 +02:00

Merge pull request #17 from decentral1se/further-testing-fixes-hack-hack-hack

Use correct ethercalc bin path
This commit is contained in:
decentral1se 2019-08-07 16:24:07 +02:00 committed by GitHub
commit a9def73626
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 2 deletions

View file

@ -6,7 +6,7 @@ After=network.target
Type=simple
User=__APP__
Group=__APP__
ExecStart=/opt/node_n/bin/ethercalc --port __PORT__ --expire __EXPIRE__
ExecStart=/opt/node_n/n/versions/node/__NODE_VERSION__/bin/ethercalc --port __PORT__ --expire __EXPIRE__
EnvironmentFile=/etc/systemd/system/ethercalc.env
RuntimeMaxSec=86400
Restart=always

View file

@ -6,6 +6,8 @@
pkg_dependencies="redis-server"
node_version="4.8.7"
# =============================================================================
# YUNOHOST 2.7 FORTHCOMING HELPERS
# =============================================================================

View file

@ -58,7 +58,9 @@ ynh_app_setting_set $app port $port
# INSTALL NODEJS
#=================================================
ynh_install_nodejs 4.8.7
ynh_install_nodejs $node_version
ynh_app_setting_set $app node_version $node_version
#=================================================
# INSTALL DEPENDENCIES
@ -100,6 +102,7 @@ ynh_add_systemd_config
ynh_replace_string --match_string="__PORT__" --replace_string=$port --target_file=/etc/systemd/system/ethercalc.service
ynh_replace_string --match_string="__EXPIRE__" --replace_string=$expire --target_file=/etc/systemd/system/ethercalc.service
ynh_replace_string --match_string="__NODE_VERSION__" --replace_string=$node_version --target_file=/etc/systemd/system/ethercalc.service
cp ../conf/ethercalc.env /etc/systemd/system/ethercalc.env

View file

@ -28,6 +28,8 @@ final_path=$(ynh_app_setting_get $app final_path)
ynh_remove_systemd_config
ynh_secure_remove /etc/systemd/system/ethercalc.env
#=================================================
# REMOVE SERVICE FROM ADMIN PANEL
#=================================================