mirror of
https://github.com/YunoHost-Apps/codimd_ynh.git
synced 2024-09-03 18:16:32 +02:00
Update install
This commit is contained in:
parent
1006fd5bef
commit
09988b1c27
1 changed files with 11 additions and 5 deletions
|
@ -125,7 +125,6 @@ ynh_replace_string "__DB_USER__" "$db_user" "../conf/config.json.example"
|
|||
ynh_replace_string "__DB_NAME__" "$db_name" "../conf/config.json.example"
|
||||
ynh_replace_string "__DB_PASS__" "$db_pass" "../conf/config.json.example"
|
||||
cp ../conf/config.json.example $final_path/config.json
|
||||
cp ../conf/systemd.service /etc/systemd/system/$app.service
|
||||
|
||||
# DB Config File
|
||||
ynh_replace_string "__DB_USER__" "$db_user" "../conf/.sequelizerc.example"
|
||||
|
@ -154,10 +153,17 @@ ynh_add_nginx_config
|
|||
# SETUP SYSTEMD
|
||||
#=================================================
|
||||
|
||||
ynh_replace_string "__NODEJS__" "$nodejs_use_version" "/etc/systemd/system/$app.service"
|
||||
ynh_replace_string "__ENV_PATH__" "$PATH" "/etc/systemd/system/$app.service"
|
||||
ynh_replace_string "__NODE__" "$nodejs_path" "/etc/systemd/system/$app.service"
|
||||
ynh_add_systemd_config
|
||||
#cp ../conf/systemd.service /etc/systemd/system/$app.service
|
||||
#ynh_replace_string "__NODEJS__" "$nodejs_use_version" "/etc/systemd/system/$app.service"
|
||||
#ynh_replace_string "__ENV_PATH__" "$PATH" "/etc/systemd/system/$app.service"
|
||||
#ynh_replace_string "__NODE__" "$nodejs_path" "/etc/systemd/system/$app.service"
|
||||
#ynh_add_systemd_config
|
||||
|
||||
ynh_replace_string "__NODEJS__" "$nodejs_use_version" "../conf/systemd.service"
|
||||
ynh_replace_string "__ENV_PATH__" "$PATH" "../conf/systemd.service"
|
||||
ynh_replace_string "__NODE__" "$nodejs_path" "../conf/systemd.service"
|
||||
cp ../conf/systemd.service /etc/systemd/system/$app.service
|
||||
#ynh_add_systemd_config
|
||||
|
||||
#=================================================
|
||||
# CREATE DEDICATED USER
|
||||
|
|
Loading…
Reference in a new issue