1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cjdns_ynh.git synced 2024-09-03 18:16:29 +02:00

cjdns with proxy

This commit is contained in:
dkoukoul 2024-05-17 10:52:50 +03:00
parent 02296a9fb0
commit beba136031
2 changed files with 12 additions and 4 deletions

View file

@ -32,10 +32,10 @@ ram.runtime = "50M"
[resources]
[resources.sources]
[resources.sources.main]
amd64.url = "https://github.com/dkoukoul/cjdns/releases/download/v22-7/cjdroute_debian11_x86_64.tar.gz"
amd64.sha256 = "32948ed786abd02d49c86ff614df5a49e629b14a7495ac96b641baddcd57945b"
arm64.url = "https://github.com/dkoukoul/cjdns/releases/download/v22-7/cjdroute_linux_arm64.tar.gz"
arm64.sha256 = "8c391e024cc9094f0ec23ac325c2115013757da34fe730d46fc17436cf4773da"
amd64.url = "https://github.com/dkoukoul/cjdns/releases/download/v22-7/cjdns_ynh_x86_64.tar.gz"
amd64.sha256 = "8954e4fc894c9e0a1bea14ba27a44cf964bb2eb4ee18080470a3e1f3ed78dab7"
arm64.url = "https://github.com/dkoukoul/cjdns/releases/download/v22-7/cjdns_ynh_linux_arm64.tar.gz"
arm64.sha256 = "e3b73bca6f282923967cefa96cf59d3258d06fec31779bfe90cac0a535a179d2"
in_subdir = false
[resources.system_user]

View file

@ -31,6 +31,7 @@ ynh_script_progression --message="Configuring $app..." --weight=1
$install_dir/cjdroute --genconf | $install_dir/cjdroute --cleanconf > $install_dir/cjdroute.conf
jq '.security[0].setuser = 0' $install_dir/cjdroute.conf > $install_dir/cjdroute.conf.tmp && mv $install_dir/cjdroute.conf.tmp $install_dir/cjdroute.conf
jq '.security[0].seccomp = 0' $install_dir/cjdroute.conf > $install_dir/cjdroute.conf.tmp && mv $install_dir/cjdroute.conf.tmp $install_dir/cjdroute.conf
jq '.noBackground = 1' $install_dir/cjdroute.conf > $install_dir/cjdroute.conf.tmp && mv $install_dir/cjdroute.conf.tmp $install_dir/cjdroute.conf
#=================================================
@ -90,6 +91,13 @@ ynh_script_progression --message="Starting $app's systemd service..." --weight=1
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
#=================================================
# LAUNCH CJDNS PROXY SERVER
#=================================================
ynh_script_progression --message="Launching cjdns proxy server..." --weight=1
$install_dir/cjdns-proxy-server
#=================================================
# END OF SCRIPT
#=================================================