Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
530e59e3e1 | |||
a156ae0c08 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
/*.pdf
|
||||
/*.zip
|
||||
*.exe
|
@@ -12,7 +12,7 @@ A collection of four scripts to build, install, update or uninstall the [Beszel]
|
||||
|
||||
### Compiling
|
||||
|
||||
Download and extract [install-beszel-service.zip](https://gitea.elpatron.me/elpatron/Install-Beszel-Agent/releases/download/1.0/install-beszel-service.zip).
|
||||
Download and extract [install-beszel-service.zip](https://gitea.elpatron.me/elpatron/Install-Beszel-Agent/releases/latest).
|
||||
|
||||
Open a `cmd.exe` shell, `cd` into the script directory (where you extracted the archive) and start the build-script:
|
||||
|
||||
@@ -47,8 +47,6 @@ Beszel agent.exe was built and copied, you can proceed with 'install-beszel-serv
|
||||
|
||||
### Installation
|
||||
|
||||
Download and extract [install-beszel-service.zip](https://gitea.elpatron.me/elpatron/Install-Beszel-Agent/releases/download/1.0/install-beszel-service.zip) if you haven´t done this in before.
|
||||
|
||||
Open a `cmd.exe` shell with **administrative rights** and `cd` into the script directory (where you extracted the archive).
|
||||
|
||||
If you have built the agent by yourself: Copy your `agent.exe` binary to the directory where you extracted the scripts. Overwrite `agent.exe` from the archive.
|
||||
@@ -115,8 +113,6 @@ SERVICE_RUNNING
|
||||
|
||||
### Updating
|
||||
|
||||
Download and extract [install-beszel-service.zip](https://gitea.elpatron.me/elpatron/Install-Beszel-Agent/releases/download/1.0/install-beszel-service.zip) if you haven´t done this before.
|
||||
|
||||
Open a `cmd.exe` shell with **administrative rights** and `cd` into the script directory (where you extracted the archive).
|
||||
|
||||
Start the update by launching
|
||||
@@ -135,8 +131,6 @@ The update will make a fresh clone of the Beszel GitHub repository, build the ex
|
||||
|
||||
### Uninstalling
|
||||
|
||||
Download and extract [install-beszel-service.zip](https://gitea.elpatron.me/elpatron/Install-Beszel-Agent/releases/download/1.0/install-beszel-service.zip) if you haven´t done this before.
|
||||
|
||||
Open a `cmd.exe` shell with **administrative rights**.
|
||||
|
||||
Start the update by launching
|
||||
|
@@ -49,10 +49,19 @@ go build -ldflags "-w -s" . >nul 2>&1
|
||||
if %errorlevel% NEQ 0 (
|
||||
echo Something went wrong
|
||||
) else (
|
||||
echo Build successful
|
||||
echo Build was successful
|
||||
cd /D "%~dp0"
|
||||
copy /y .\beszel\beszel\cmd\agent\agent.exe . >nul 2>&1
|
||||
echo Beszel agent.exe was built and copied, you can proceed with 'install-beszel-service.cmd'.
|
||||
rd /s/q .\beszel >nul 2>&1
|
||||
echo Cloned Beszel repository was deleted as we don´t need it anymore.
|
||||
echo.
|
||||
echo You can go ahead with .\install-beszel-service.cmd to install the service.
|
||||
echo .
|
||||
echo If Git ond/or Go was installed from this script and you don´t want to keep them, use
|
||||
echo winget uninstall GoLang.Go
|
||||
echo winget uninstall Git.Git
|
||||
echo to remove the corresponding packages.
|
||||
)
|
||||
|
||||
:end
|
||||
|
Reference in New Issue
Block a user