Fix missing postinst script for PIVX

- added service env
- added postinst_script_template
This commit is contained in:
XK4MiLX 2023-09-03 18:32:46 +02:00 committed by Martin
parent 95ee9b5b64
commit 85e5b22d1c

View File

@ -32,9 +32,9 @@
],
"exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/pivxd -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid",
"logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log",
"postinst_script_template": "",
"postinst_script_template": "HOME={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/install-params.sh",
"service_type": "forking",
"service_additional_params_template": "",
"service_additional_params_template": "Environment=\"HOME={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend\"",
"protect_memory": false,
"mainnet": true,
"server_config_file": "bitcoin_like.conf",