diff --git a/luci-app-run/Makefile b/luci-app-run/Makefile index d72b125aa..13714bb18 100644 --- a/luci-app-run/Makefile +++ b/luci-app-run/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-run PKG_VERSION:=1.0.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 LUCI_TITLE:=LuCI support for running makeself .run installers LUCI_DESCRIPTION:=Upload and execute makeself-generated .run installers from LuCI. diff --git a/luci-app-run/root/usr/libexec/rpcd/luci-app-run b/luci-app-run/root/usr/libexec/rpcd/luci-app-run index 74d9e1881..2a7990c24 100755 --- a/luci-app-run/root/usr/libexec/rpcd/luci-app-run +++ b/luci-app-run/root/usr/libexec/rpcd/luci-app-run @@ -131,8 +131,8 @@ upload_start() { local clean id token dir file clean="$(sanitize_name "$filename")" case "$clean" in - *.run) ;; - *) json_error "Only .run files are accepted"; return ;; + *.run|*.sh) ;; + *) json_error "Only .run and .sh files are accepted"; return ;; esac id="$(date +%s)_$$"