Fix goreleaser version to 1.6.3 (#266)

As status command relies on log,
we should always use console as output

Co-authored-by: mlsmaycon <mlsmaycon@gmail.com>
This commit is contained in:
Mikhail Bragin 2022-03-14 13:16:16 +01:00 committed by GitHub
parent e3b809a1d4
commit 1660a915e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 12 deletions

View File

@ -50,7 +50,7 @@ jobs:
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
version: 1.6.3
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -63,6 +63,7 @@ nfpms:
description: Wiretrustee client.
homepage: https://wiretrustee.com/
id: deb
bindir: /usr/bin
builds:
- wiretrustee
formats:
@ -76,6 +77,7 @@ nfpms:
description: Wiretrustee client.
homepage: https://wiretrustee.com/
id: rpm
bindir: /usr/bin
builds:
- wiretrustee
formats:

View File

@ -135,12 +135,12 @@ Hosted version:
3. Decompress
```shell
tar xcf ./wiretrustee_<VERSION>_darwin_amd64.tar.gz
sudo mv wiretrusee /usr/local/bin/wiretrustee
chmod +x /usr/local/bin/wiretrustee
sudo mv wiretrusee /usr/bin/wiretrustee
chmod +x /usr/bin/wiretrustee
```
After that you may need to add /usr/local/bin in your PATH environment variable:
After that you may need to add /usr/bin in your PATH environment variable:
````shell
export PATH=$PATH:/usr/local/bin
export PATH=$PATH:/usr/bin
````
4. Install and run the service
```shell

View File

@ -18,7 +18,7 @@ var statusCmd = &cobra.Command{
RunE: func(cmd *cobra.Command, args []string) error {
SetFlagsFromEnvVars()
err := util.InitLog(logLevel, logFile)
err := util.InitLog(logLevel, "console")
if err != nil {
log.Errorf("failed initializing log %v", err)
return err

View File

@ -12,8 +12,8 @@ fi
cleanInstall() {
printf "\033[32m Post Install of an clean install\033[0m\n"
# Step 3 (clean install), enable the service in the proper way for this platform
/usr/local/bin/wiretrustee service install
/usr/local/bin/wiretrustee service start
/usr/bin/wiretrustee service install
/usr/bin/wiretrustee service start
}
upgrade() {
@ -27,9 +27,9 @@ upgrade() {
systemctl daemon-reload
fi
# will trow an error until everyone upgrade
/usr/local/bin/wiretrustee service uninstall 2> /dev/null || true
/usr/local/bin/wiretrustee service install
/usr/local/bin/wiretrustee service start
/usr/bin/wiretrustee service uninstall 2> /dev/null || true
/usr/bin/wiretrustee service install
/usr/bin/wiretrustee service start
}
# Check if this is a clean install or an upgrade

View File

@ -22,7 +22,7 @@ remove() {
fi
printf "\033[32m Uninstalling the service\033[0m\n"
/usr/local/bin/wiretrustee service uninstall || true
/usr/bin/wiretrustee service uninstall || true
if [ "${use_systemctl}" = "True" ]; then