Verified Commit a73fd54b authored by azubieta's avatar azubieta
Browse files

Install appimage-services only if requried

parent 806b197e
Pipeline #622 passed with stage
in 1 minute and 43 seconds
...@@ -2,11 +2,16 @@ ...@@ -2,11 +2,16 @@
set -e set -e
echo "Installing appimage-services" APPIMAGE_SERVICES_BIN_PATH=/usr/bin/appimage-services
echo "Downloading latest version from opencode.net"
APPIMAGE_SERVICES_URL="https://www.opencode.net/azubieta/AppImageService/-/jobs/artifacts/master/raw/appimage-services-x86_64.AppImage?job=build:AppImage" APPIMAGE_SERVICES_URL="https://www.opencode.net/azubieta/AppImageService/-/jobs/artifacts/master/raw/appimage-services-x86_64.AppImage?job=build:AppImage"
wget $APPIMAGE_SERVICES_URL -O /usr/bin/appimage-services if [ -f "$APPIMAGE_SERVICES_BIN_PATH" ]
then
echo "Using appimamge-services bin from $APPIMAGE_SERVICES_BIN_PATH"
else
echo "Installing appimage-services to $APPIMAGE_SERVICES_BIN_PATH"
wget "$APPIMAGE_SERVICES_URL" -O "$APPIMAGE_SERVICES_BIN_PATH"
chmod +x /usr/bin/appimage-services chmod +x "$APPIMAGE_SERVICES_BIN_PATH"
/usr/bin/appimage-services self-install "$APPIMAGE_SERVICES_BIN_PATH" self-install
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment