From f7c5a66226e1a4e15acd0f8fa55e5aa4eb7a1af5 Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@freedombone.net> Date: Mon, 7 Jan 2019 19:14:52 +0000 Subject: [PATCH] Show sync commands for rsync --- src/freedombone-utils-webadmin | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/freedombone-utils-webadmin b/src/freedombone-utils-webadmin index afd91e51e..c4bf4f617 100755 --- a/src/freedombone-utils-webadmin +++ b/src/freedombone-utils-webadmin @@ -857,6 +857,11 @@ function web_admin_create_installed_apps_category { else domain_name="http://${onion_domain_name}" fi + + if [[ "$app_name" == 'rsync' ]]; then + RSYNC_HOSTNAME_ONION=$(cat /var/lib/tor/hidden_service_rsync/hostname) + domain_name="torsocks rsync -avmr $RSYNC_HOSTNAME_ONION::files ~/your_directory/ && torsocks rsync -avmr ~/your_directory/ $RSYNC_HOSTNAME_ONION::files<br><br>rsync -avmr ${PROJECT_NAME}::files ~/your_directory/ && rsync -avmr ~/your_directory/ ${PROJECT_NAME}::files" + fi fi if [ $installed_apps_ctr -eq 0 ]; then -- GitLab