mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Bugfix
This commit is contained in:
parent
35894bc4fc
commit
0fa61f8626
@ -8,13 +8,13 @@
|
|||||||
# -y, --yes, --assume-yes
|
# -y, --yes, --assume-yes
|
||||||
# Assume "yes" as answer to all prompts and run non-interactively
|
# Assume "yes" as answer to all prompts and run non-interactively
|
||||||
#
|
#
|
||||||
# c, --crt, --certficate
|
# c, --cert, --certficate
|
||||||
# Installs mkcert and generates an SSL certificate for lighttpd
|
# Installs mkcert and generates an SSL certificate for lighttpd
|
||||||
|
|
||||||
UPDATE_URL="https://raw.githubusercontent.com/billz/raspap-webgui/master/"
|
UPDATE_URL="https://raw.githubusercontent.com/billz/raspap-webgui/master/"
|
||||||
VERSION=$(curl -s "https://api.github.com/repos/billz/raspap-webgui/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")' )
|
VERSION=$(curl -s "https://api.github.com/repos/billz/raspap-webgui/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")' )
|
||||||
USAGE=$'Usage: raspbian.sh [OPTION] \n\n-y, --yes, --assume-yes\n\tAssumes "yes" as an answer to all prompts'
|
USAGE=$'Usage: raspbian.sh [OPTION] \n\n-y, --yes, --assume-yes\n\tAssumes "yes" as an answer to all prompts'
|
||||||
USAGE+=$'\n-c, --crt, --certficate\n\tInstalls an SSL certificate for lighttpd\n'
|
USAGE+=$'\n-c, --cert, --certficate\n\tInstalls an SSL certificate for lighttpd\n'
|
||||||
|
|
||||||
assume_yes=0
|
assume_yes=0
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ while :; do
|
|||||||
assume_yes=1
|
assume_yes=1
|
||||||
apt_option="-y"
|
apt_option="-y"
|
||||||
;;
|
;;
|
||||||
-c|--crt|--certificate)
|
-c|--cert|--certificate)
|
||||||
install_cert=1
|
install_cert=1
|
||||||
;;
|
;;
|
||||||
-*|--*)
|
-*|--*)
|
||||||
@ -85,12 +85,12 @@ function update_system_packages() {
|
|||||||
|
|
||||||
if [ "${install_cert:-}" = 1 ]; then
|
if [ "${install_cert:-}" = 1 ]; then
|
||||||
source="mkcert"
|
source="mkcert"
|
||||||
wget -q ${UPDATE_URL}installers/${source}.sh -O /tmp/raspap_${source}
|
wget -q ${UPDATE_URL}installers/${source}.sh -O /tmp/raspap_${source}.sh
|
||||||
source /tmp/raspap_${source}.sh && rm -f /tmp/raspap_${source}.sh
|
source /tmp/raspap_${source}.sh && rm -f /tmp/raspap_${source}.sh
|
||||||
install_certificate
|
install_certificate
|
||||||
else
|
else
|
||||||
source="common"
|
source="common"
|
||||||
wget -q ${UPDATE_URL}installers/${source}.sh -O /tmp/raspap_${source}
|
wget -q ${UPDATE_URL}installers/${source}.sh -O /tmp/raspap_${source}.sh
|
||||||
source /tmp/raspap_${source}.sh && rm -f /tmp/raspap_${source}.sh
|
source /tmp/raspap_${source}.sh && rm -f /tmp/raspap_${source}.sh
|
||||||
install_raspap
|
install_raspap
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user