diff --git a/src/modules/plugins/plugins.service.ts b/src/modules/plugins/plugins.service.ts index 2d04ab3e6..57fb7ac47 100755 --- a/src/modules/plugins/plugins.service.ts +++ b/src/modules/plugins/plugins.service.ts @@ -686,7 +686,7 @@ export class PluginsService { pluginAction.version !== 'latest' ) { try { - await this.httpService.head(`https://github.com/homebridge/homebridge-config-ui-x/releases/download/${pluginAction.version}/homebridge-config-ui-x-${pluginAction.version}.tar.gz`).toPromise(); + await this.httpService.head(`https://github.com/homebridge/homebridge-config-ui-x/releases/download/v${pluginAction.version}/homebridge-config-ui-x-${pluginAction.version}.tar.gz`).toPromise(); return true; } catch (e) { return false; diff --git a/upgrade-install.sh b/upgrade-install.sh index 033f091ab..bca43cd2a 100755 --- a/upgrade-install.sh +++ b/upgrade-install.sh @@ -28,7 +28,7 @@ fi echo "Downloading SHASUMS256.txt..." curl -fsSL# -o "$tmp_dir/SHASUMS256.txt" \ - https://github.com/homebridge/homebridge-config-ui-x/releases/download/${TARGET_VERSION}/SHASUMS256.txt + https://github.com/homebridge/homebridge-config-ui-x/releases/download/v${TARGET_VERSION}/SHASUMS256.txt if [ "$?" != "0" ]; then echo "Failed to download SHASUMS256.txt" exit 1 @@ -36,7 +36,7 @@ fi echo "Downloading homebridge-config-ui-x-${TARGET_VERSION}.tar.gz..." curl -fL# -o "$tmp_dir/homebridge-config-ui-x-${TARGET_VERSION}.tar.gz" \ - https://github.com/homebridge/homebridge-config-ui-x/releases/download/${TARGET_VERSION}/homebridge-config-ui-x-${TARGET_VERSION}.tar.gz + https://github.com/homebridge/homebridge-config-ui-x/releases/download/v${TARGET_VERSION}/homebridge-config-ui-x-${TARGET_VERSION}.tar.gz if [ "$?" != "0" ]; then echo "Failed to download homebridge-config-ui-x-${TARGET_VERSION}.tar.gz" exit 1