From ef710165a7dce8ac520a80c03e955e18501ca49c Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 7 May 2022 19:38:55 -0400 Subject: [PATCH] Update photoprism-install.sh --- setup/photoprism-install.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/setup/photoprism-install.sh b/setup/photoprism-install.sh index 1c699738..60fe201a 100644 --- a/setup/photoprism-install.sh +++ b/setup/photoprism-install.sh @@ -87,8 +87,8 @@ apt-get install -y nodejs &>/dev/null msg_ok "Installed Node.js" msg_info "Installing Golang" -wget https://golang.org/dl/go1.18.linux-amd64.tar.gz &>/dev/null -tar -C /usr/local -xzf go1.18.linux-amd64.tar.gz &>/dev/null +wget https://golang.org/dl/go1.18.1.linux-amd64.tar.gz &>/dev/null +tar -xzf go1.18.1.linux-amd64.tar.gz -C /usr/local &>/dev/null ln -s /usr/local/go/bin/go /usr/local/bin/go &>/dev/null go install github.com/tianon/gosu@latest &>/dev/null go install golang.org/x/tools/cmd/goimports@latest &>/dev/null @@ -97,7 +97,10 @@ go install github.com/dsoprea/go-exif/v3/command/exif-read-tool@latest &>/dev/nu go install github.com/mikefarah/yq/v4@latest &>/dev/null go install github.com/kyoh86/richgo@latest &>/dev/null cp /root/go/bin/* /usr/local/go/bin/ -cp /root/go/bin/* /usr/local/bin/ +cp /usr/local/go/bin/richgo /usr/local/bin/richgo +cp /usr/local/go/bin/gosu /usr/local/sbin/gosu +chown root:root /usr/local/sbin/gosu +chmod 755 /usr/local/sbin/gosu msg_ok "Installed Golang" read -p "Check For Advanced Vector Extensions? " -n 1 -r @@ -194,5 +197,5 @@ msg_ok "Customized Container" msg_info "Cleaning up" apt-get autoremove >/dev/null apt-get autoclean >/dev/null -rm -rf /var/{cache,log}/* /var/lib/apt/lists/* /root/go +rm -rf /var/{cache,log}/* /var/lib/apt/lists/* msg_ok "Cleaned"