mirror of
https://github.com/searxng/searxng.git
synced 2024-11-14 14:11:05 +00:00
ac5cce69cc
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
1.3 KiB
1.3 KiB
bash
sudo -H useradd --shell /bin/bash --system \\
$ --home-dir \"$SERVICE_HOME\" \\
--comment \"Privacy-respecting metasearch engine\" $SERVICE_USER
sudo -H mkdir \"$SERVICE_HOME\"
$ sudo -H chown -R \"$SERVICE_GROUP:$SERVICE_GROUP\" \"$SERVICE_HOME\" $
os: linux / arch: amd64
cat > \"$GO_ENV\" <<EOF
$ ${SERVICE_HOME}/go-apps
export GOPATH=\$PATH:${SERVICE_HOME}/local/go/bin:\$GOPATH/bin
export PATH=EOF
sudo -i -u \"${SERVICE_USER}\"
$ (${SERVICE_USER}) $ echo 'source $GO_ENV' >> ~/.profile
(${SERVICE_USER}) $ mkdir ${SERVICE_HOME}/local
(${SERVICE_USER}) $ wget --progress=bar -O \"${GO_VERSION}.linux-amd64.tar.gz\" \\
\"${GO_DL_URL}/${GO_VERSION}.linux-amd64.tar.gz\"
(${SERVICE_USER}) $ tar -C ${SERVICE_HOME}/local -xzf \"${GO_VERSION}.linux-amd64.tar.gz\"
(${SERVICE_USER}) $ which go
${SERVICE_HOME}/local/go/bin/go
bash
sudo -i -u \"${SERVICE_USER}\"
$ (${SERVICE_USER}) $ go get -v -u github.com/searxng/filtron