-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·19 lines (17 loc) · 905 Bytes
/
run.sh
File metadata and controls
executable file
·19 lines (17 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
if [ -f /etc/os-release ]; then
ID=$(grep '^ID=' /etc/os-release | cut -d'=' -f2 | sed 's/"//g')
if [ "$ID" = "debian" ] || [ "$ID" = "ubuntu" ]; then
apt-get install -qqy libfuse2
if [ $? -eq 0 ]; then
echo "Successfully installed libfuse2"
else
echo "Failed to install libfuse2. Make sure that libfuse2 is installed. See https://github.com/AppImage/AppImageKit/wiki/FUSE."
fi
else
echo "Detected a non-Debian or Ubuntu system, unable to automatically install libfuse2. Make sure that libfuse2 is installed. See https://github.com/AppImage/AppImageKit/wiki/FUSE."
fi
else
echo "Unable to determine the operating system, unable to automatically install libfuse2. Make sure that libfuse2 is installed. See https://github.com/AppImage/AppImageKit/wiki/FUSE."
fi
exec ./bin/viam-csi-latest-aarch64.AppImage "$@"