tangled
alpha
login
or
join now
tsiry-sandratraina.com
/
fireup
8
fork
atom
Prepare, configure, and manage Firecracker microVMs in seconds!
virtualization
linux
microvm
firecracker
8
fork
atom
overview
issues
pulls
pipelines
fix installer script
tsiry-sandratraina.com
6 months ago
2ed8cae5
743af620
1/1
fmt.yml
success
2s
+24
-2
1 changed file
expand all
collapse all
unified
split
install.sh
+24
-2
install.sh
···
104
104
105
105
$SUDO cp $HOME/.firecracker/release-${VERSION}-${ARCH}/snapshot-editor /usr/local/bin/snapshot-editor
106
106
107
107
+
108
108
+
function detect_os() {
109
109
+
# Determine the operating system
110
110
+
OS=$(uname -s)
111
111
+
if [ "$OS" = "Linux" ]; then
112
112
+
# Determine the CPU architecture
113
113
+
ARCH=$(uname -m)
114
114
+
if [ "$ARCH" = "aarch64" ]; then
115
115
+
ASSET_NAME="aarch64-unknown-linux-gnu.tar.gz"
116
116
+
elif [ "$ARCH" = "x86_64" ]; then
117
117
+
ASSET_NAME="_x86_64-unknown-linux-gnu.tar.gz"
118
118
+
else
119
119
+
echo "Unsupported architecture: $ARCH"
120
120
+
exit 1
121
121
+
fi
122
122
+
else
123
123
+
echo "Unsupported operating system: $OS"
124
124
+
echo "This script only supports Linux."
125
125
+
exit 1
126
126
+
fi;
127
127
+
}
128
128
+
107
129
detect_os
108
130
109
131
RELEASE_URL="https://api.github.com/repos/tsirysndr/fireup/releases/latest"
110
132
111
111
-
DOWNLOAD_URL=$(curl -sSL "$RELEASE_URL" | grep -o "browser_download_url.*fireup-.*$ASSET_NAME\"" | cut -d ' ' -f 2)
133
133
+
DOWNLOAD_URL=$(curl -sSL "$RELEASE_URL" | grep -o "browser_download_url.*fireup_.*$ASSET_NAME\"" | cut -d ' ' -f 2)
112
134
113
135
DOWNLOAD_URL=`echo $DOWNLOAD_URL | tr -d '\"'`
114
136
···
145
167
You can now run the following command to start using Fireup:
146
168
${CYAN}fireup${NO_COLOR}
147
169
148
148
-
EOF
170
170
+
EOF