Skip to content

Commit

Permalink
Add script description
Browse files Browse the repository at this point in the history
  • Loading branch information
dutu committed May 3, 2024
1 parent 37b0bff commit 12f901d
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
12 changes: 12 additions & 0 deletions bisq/assets/exec.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
#!/bin/bash

# This script serves as the execution entry point for the Bisq application from a desktop menu icon,
# specifically tailored for use in the Tails OS. It is intended to be linked as the 'Exec' command
# in a .desktop file, enabling users to start Bisq directly from the desktop interface.
#
# FUNCTIONAL OVERVIEW:
# - Automatic installation and configuration of Bisq if not already set up.
# - Linking Bisq data directories to persistent storage to preserve user data across sessions.
#
# NOTE:
# This script assumes that Bisq's related utility scripts and files are correctly placed and accessible
# in the specified directories.

# Function to print messages in blue
echo_blue() {
if [ -t 1 ]; then
Expand Down
12 changes: 12 additions & 0 deletions bisq/assets/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
#!/bin/bash

# This script automates the installation and configuration of Bisq on a Tails OS system,
#
# FUNCTIONAL OVERVIEW:
# - Verification of the Bisq installer's presence.
# - Installation of the Bisq application with dpkg.
# - Removal of automatically created desktop icons to clean up after installation.
# - Deployment of Tor configuration for Bisq.
# - Restart of the onion-grater service to apply new configurations.
#
# The script requires administrative privileges to perform system modifications.


# Function to print messages in blue
echo_blue() {
if [ -t 1 ]; then
Expand Down
16 changes: 12 additions & 4 deletions bisq/setup-installation.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/bin/bash

# This script facilitates the setup and installation of the Bisq application on Tails OS.
#
# FUNCTIONAL OVERVIEW:
# - Creating necessary persistent directories and copying utility files.
# - Downloading Bisq binary, signature file, and GPG key for verification.
# - Importing and verifying the GPG key to ensure the authenticity of the download.
# - Setting up desktop icons in both local and persistent directories.

# Function to print messages in blue
echo_blue() {
echo -e "\033[1;34m$1\033[0m"
Expand All @@ -23,10 +31,10 @@ persistent_desktop_dir="$dotfiles_dir/.local/share/applications"
local_desktop_dir="/home/amnesia/.local/share/applications"

# Check if Bisq is already installed
if [ -f "/opt/bisq/bin/Bisq" ]; then
echo_red "Bisq is already installed, please reboot Tails and run the script again..."
exit 1
fi
# if [ -f "/opt/bisq/bin/Bisq" ]; then
# echo_red "Bisq is already installed, please reboot Tails and run the script again..."
# exit 1
# fi

echo_blue "Creating persistent directory for Bisq..."
mkdir -p $persistence_dir/bisq/Bisq || { echo_red "Failed to create directory $persistence_dir/bisq/Bisq"; exit 1; }
Expand Down

0 comments on commit 12f901d

Please sign in to comment.