mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 15:20: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 \
|
RUN apk update \
|
||||||
&& apk add --no-cache bash git curl tzdata \
|
&& apk add --no-cache bash git curl tzdata \
|
||||||
wireguard-tools sudo \
|
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.
|
# 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
|
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"
|
printf "[WGDashboard] Upgrading Python Package Manage (PIP)\n"
|
||||||
{ date; python3 -m pip install --upgrade pip; printf "\n\n"; } >> ./log/install.txt
|
{ date; python3 -m pip install --upgrade pip; printf "\n\n"; } >> ./log/install.txt
|
||||||
printf "[WGDashboard] Installing latest Python dependencies\n"
|
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.
|
{ 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] WGDashboard installed successfully!\n"
|
||||||
printf "[WGDashboard] Enter ./wgd.sh start to start the dashboard\n"
|
printf "[WGDashboard] Enter ./wgd.sh start to start the dashboard\n"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user