mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 07:10:09 +01:00
These needed to be added.
This commit is contained in:
parent
6e9d71fcf8
commit
49502235b5
@ -19,7 +19,7 @@ ENV update="yes"
|
||||
RUN apk update \
|
||||
&& apk add --no-cache bash git curl tzdata \
|
||||
wireguard-tools sudo \
|
||||
py3-pip py3-psutil py3-bcrypt python3-dev
|
||||
py3-pip py3-psutil py3-bcrypt
|
||||
|
||||
# Using WGDASH -- like wg_net functionally as a ARG command. But it is needed in entrypoint.sh so it needs to be exported as environment variable.
|
||||
ENV WGDASH=/opt/wireguarddashboard
|
||||
|
13
src/wgd.sh
13
src/wgd.sh
@ -280,20 +280,7 @@ install_wgd(){
|
||||
printf "[WGDashboard] Upgrading Python Package Manage (PIP)\n"
|
||||
{ date; python3 -m pip install --upgrade pip; printf "\n\n"; } >> ./log/install.txt
|
||||
printf "[WGDashboard] Installing latest Python dependencies\n"
|
||||
|
||||
case "$OS" in
|
||||
ubuntu|debian|centos|fedora|redhat|rhel)
|
||||
{ date; python3 -m pip install -r requirements.txt ; printf "\n\n"; } >> ./log/install.txt #This all works on the default installation.
|
||||
;;
|
||||
alpine)
|
||||
{ date; sudo apk add gcc python3-dev musl-dev linux-headers ; python3 -m pip install -r requirements.txt ; printf "\n\n"; } >> ./log/install.txt
|
||||
;;
|
||||
*)
|
||||
printf "[WGDashboard] %s Sorry, your OS is not supported. Currently the install script only support Debian-based, Red Hat-based OS. With experimental support for Alpine Linux.\n" "$heavy_crossmark"
|
||||
printf "%s\n" "$helpMsg"
|
||||
kill $TOP_PID
|
||||
;;
|
||||
esac
|
||||
printf "[WGDashboard] WGDashboard installed successfully!\n"
|
||||
printf "[WGDashboard] Enter ./wgd.sh start to start the dashboard\n"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user