-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #896 from atsign-foundation/xc/universal-versioned…
…-installer feat: universal versioned installer
- Loading branch information
Showing
15 changed files
with
954 additions
and
457 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 0 additions & 51 deletions
51
packages/dart/sshnoports/bundles/core/config/sshnp-config-template.env
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
script_dir="$(dirname -- "$(readlink -f -- "$0")")" | ||
time_stamp=$(date +%s) | ||
|
||
tempdir="$script_dir/temp-$time_stamp/sshnp" | ||
outfile="$script_dir/sshnp-$time_stamp" | ||
|
||
mkdir -p "$tempdir" | ||
cp -R "$script_dir"/core/* "$tempdir/" | ||
cp -R "$script_dir"/shell/* "$tempdir/" | ||
|
||
if [ "$(uname)" = 'Darwin' ]; then | ||
ditto -c -k --keepParent "$tempdir" "$outfile.zip" | ||
else | ||
tar -cvzf "$outfile.tgz" "$script_dir/temp-$time_stamp" | ||
fi |
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
packages/dart/sshnoports/bundles/shell/headless/root_srvd.sh
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
packages/dart/sshnoports/bundles/shell/headless/root_sshnpd.sh
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
#!/bin/sh | ||
# disable "var is referenced but not assigned" warning for template | ||
# shellcheck disable=SC2154 | ||
|
||
# Configuration of srvd service | ||
# This unit script is a template for the srvd background service. | ||
# You can configure the service by editing the variables below. | ||
# This service file covers the common configuration options for srvd. | ||
# To see all available options, run `srvd` with no arguments. | ||
|
||
# SCRIPT METADATA | ||
binary_path="$HOME/.local/bin" | ||
atsign="@my_rvd" # MANDATORY: Srvd atSign | ||
internet_address="" # MANDATORY: Public FQDN or IP address of the machine running the srvd | ||
v="-v" # Comment to disable verbose logging | ||
# END METADATA | ||
|
||
sleep 10 # allow machine to bring up network | ||
export USER="$user" | ||
while true; do | ||
"$HOME"/.local/bin/srvd -a "$atsign" -i "$internet_address" "$v" | ||
"$binary_path"/srvd -a "$atsign" -i "$internet_address" "$v" | ||
sleep 10 | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,22 @@ | ||
#!/bin/sh | ||
# disable "var is referenced but not assigned" warning for template | ||
# shellcheck disable=SC2154 | ||
|
||
# Configuration of sshnpd service | ||
# This script is a template for the sshnpd background service. | ||
# You can configure the service by editing the variables below. | ||
# This service file covers the common configuration options for sshnpd. | ||
# To see all available options, run `sshnpd` with no arguments. | ||
|
||
# SCRIPT METADATA | ||
binary_path="$HOME/.local/bin" | ||
manager_atsign="@example_client" # MANDATORY: Manager/client address (atSign) | ||
device_atsign="@example_device" # MANDATORY: Device address (atSign) | ||
device_name="default" # Device name | ||
user="$(whoami)" # MANDATORY: Username | ||
v="-v" # Comment to disable verbose logging | ||
|
||
# Uncomment if you wish the daemon to update authorized_keys to include public | ||
# keys sent by authorized manager atSigns | ||
# s="-s" | ||
|
||
# Uncomment if you wish to have the daemon make various information visible to | ||
# the manager atsign - e.g. username, version, etc - without the manager atSign | ||
# needing to know this daemon's device name | ||
# u="-u" | ||
s="-s" # Comment to disable sending public keys | ||
u="-u" # Comment to disable sending user information | ||
# END METADATA | ||
|
||
sleep 10 # allow machine to bring up network | ||
export USER="$user" | ||
while true; do | ||
# The line below runs the sshnpd service, with the options set above. | ||
# You can edit this line to further customize the service to your needs. | ||
"$HOME"/.local/bin/sshnpd -a "$device_atsign" -m "$manager_atsign" -d "$device_name" "$s" "$u" "$v" | ||
"$binary_path"/sshnpd -a "$device_atsign" -m "$manager_atsign" -d "$device_name" "$s" "$u" "$v" | ||
sleep 10 | ||
done |
Oops, something went wrong.