Skip to content

Commit f38ff64

Browse files
committed
feat(snap): get snap settings from envs while installing
1 parent 4038bd5 commit f38ff64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ snap_install() {
154154
echo "🚀 Starting ShellHub snap service..."
155155

156156
{
157+
sudo snap set shellhub server-address="$SERVER_ADDRESS"
158+
sudo snap set shellhub tenant-id="$TENANT_ID"
159+
sudo snap set shellhub private-key="${PRIVATE_KEY:-/etc/shellhub.key}"
157160
sudo snap start shellhub
158161
} || { echo "❌ Failed to start ShellHub snap service."; exit 1; }
159162
}

0 commit comments

Comments
 (0)