-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: universal versioned installer #896
Changes from all commits
150840a
0d72edd
996dc7e
e91358e
fb6a8bf
9510c7f
1f26a25
7528d2c
2db228d
b950d8a
4ba8a72
6a38d54
094a8ad
061229a
52c9a1e
31620b1
8a64e1a
60426bf
a4c4c4d
e3f0b7b
dceb112
43bdded
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
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.
This file was deleted.
This file was deleted.
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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did this so we could remove the separate root version, by simply replacing the string here |
||
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 |
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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same thing here |
||
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the action is called from a tag, then it will replace the version in the universal.sh script with the version from the tag, then it will upload that as an artifact.