Update photoprism-install.sh

This commit is contained in:
tteckster 2022-05-06 17:33:49 -04:00 committed by GitHub
parent 52ceb89569
commit a385125fbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 5 deletions

View File

@ -89,6 +89,14 @@ msg_info "Installing Golang"
wget https://golang.org/dl/go1.18.linux-amd64.tar.gz &>/dev/null 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 tar -C /usr/local -xzf go1.18.linux-amd64.tar.gz &>/dev/null
ln -s /usr/local/go/bin/go /usr/local/bin/go &>/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
go install github.com/psampaz/go-mod-outdated@latest &>/dev/null
go install github.com/dsoprea/go-exif/v3/command/exif-read-tool@latest &>/dev/null
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/
msg_ok "Installed Golang" msg_ok "Installed Golang"
msg_info "Installing Tensorflow" msg_info "Installing Tensorflow"
@ -99,7 +107,7 @@ msg_ok "Installed Tensorflow"
msg_info "Cloning PhotoPrism" msg_info "Cloning PhotoPrism"
mkdir -p /opt/photoprism/bin mkdir -p /opt/photoprism/bin
mkdir /var/lib/photoprism mkdir -p /var/lib/photoprism/storage
git clone https://github.com/photoprism/photoprism.git &>/dev/null git clone https://github.com/photoprism/photoprism.git &>/dev/null
cd photoprism cd photoprism
git checkout release &>/dev/null git checkout release &>/dev/null
@ -114,7 +122,9 @@ msg_ok "Built PhotoPrism"
env_path="/var/lib/photoprism/.env" env_path="/var/lib/photoprism/.env"
echo " echo "
PHOTOPRISM_ADMIN_PASSWORD='admin' PHOTOPRISM_ADMIN_PASSWORD='admin'
PHOTOPRISM_STORAGE_PATH='/var/lib/photoprism' PHOTOPRISM_HTTP_HOST='0.0.0.0'
PHOTOPRISM_HTTP_PORT=2342
PHOTOPRISM_STORAGE_PATH='/var/lib/photoprism/storage'
PHOTOPRISM_ORIGINALS_PATH='/var/lib/photoprism/photos/Originals' PHOTOPRISM_ORIGINALS_PATH='/var/lib/photoprism/photos/Originals'
PHOTOPRISM_IMPORT_PATH='/var/lib/photoprism/photos/Import' PHOTOPRISM_IMPORT_PATH='/var/lib/photoprism/photos/Import'
" > $env_path " > $env_path
@ -160,5 +170,5 @@ msg_ok "Customized Container"
msg_info "Cleaning up" msg_info "Cleaning up"
apt-get autoremove >/dev/null apt-get autoremove >/dev/null
apt-get autoclean >/dev/null apt-get autoclean >/dev/null
rm -rf /var/{cache,log}/* /var/lib/apt/lists/* rm -rf /var/{cache,log}/* /var/lib/apt/lists/* /root/go
msg_ok "Cleaned" msg_ok "Cleaned"