Skip to content
Snippets Groups Projects
Commit 93def2ef authored by Bob Mottram's avatar Bob Mottram
Browse files

rsync qrcode contains commands to sync

parent f7c5a662
No related branches found
No related tags found
No related merge requests found
......@@ -860,7 +860,7 @@ function web_admin_create_installed_apps_category {
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"
domain_name="torsocks rsync -avmr --delete $RSYNC_HOSTNAME_ONION::files ~/your_directory/ && torsocks rsync -avmr --delete ~/your_directory/ $RSYNC_HOSTNAME_ONION::files<br><br>rsync -avmr --delete ${PROJECT_NAME}::files ~/your_directory/ && rsync -avmr --delete ~/your_directory/ ${PROJECT_NAME}::files"
fi
fi
......@@ -900,10 +900,19 @@ function web_admin_create_installed_apps_category {
if ! grep -q 'SHOW_DOMAIN_IN_WEBADMIN=0' "$app_filename"; then
if [ ! -f "$webadmin_install_dir/app_qrcode_${app_name}.png" ]; then
if [ ! -f /usr/local/bin/myqr ]; then
echo -n "http://${onion_domain_name}" | qrencode -t PNG -o "$webadmin_install_dir/app_qrcode_${app_name}.png"
if [[ "$app_name" != 'rsync' ]]; then
if [ ! -f /usr/local/bin/myqr ]; then
echo -n "http://${onion_domain_name}" | qrencode -t PNG -o "$webadmin_install_dir/app_qrcode_${app_name}.png"
else
myqr "http://${onion_domain_name}" -p /root/freedombone/img/onion.png -c -n "$webadmin_install_dir/app_qrcode_${app_name}.png"
fi
else
myqr "http://${onion_domain_name}" -p /root/freedombone/img/onion.png -c -n "$webadmin_install_dir/app_qrcode_${app_name}.png"
# do something different for rsync: show the commands to sync
if [ ! -f /usr/local/bin/myqr ]; then
echo -n "torsocks rsync -avmr --delete $RSYNC_HOSTNAME_ONION::files ~/your_directory/ && torsocks rsync -avmr --delete ~/your_directory/ $RSYNC_HOSTNAME_ONION::files" | qrencode -t PNG -o "$webadmin_install_dir/app_qrcode_${app_name}.png"
else
myqr "torsocks rsync -avmr $RSYNC_HOSTNAME_ONION::files ~/your_directory/ && torsocks rsync -avmr ~/your_directory/ $RSYNC_HOSTNAME_ONION::files" -p /root/freedombone/img/onion.png -c -n "$webadmin_install_dir/app_qrcode_${app_name}.png"
fi
fi
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment