Setup: Update digitalocean.json, setup.sh, and cleanup.sh

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2023-03-22 03:01:26 +01:00
parent 10e2e33a02
commit 87e05222b0
3 changed files with 5 additions and 0 deletions

View file

@ -34,6 +34,7 @@
"type": "shell", "type": "shell",
"environment_vars": [ "environment_vars": [
"DEBIAN_FRONTEND=noninteractive", "DEBIAN_FRONTEND=noninteractive",
"UA_LOG_LEVEL=info",
"LC_ALL=C", "LC_ALL=C",
"LANG=en_US.UTF-8", "LANG=en_US.UTF-8",
"LC_CTYPE=en_US.UTF-8" "LC_CTYPE=en_US.UTF-8"

View file

@ -14,6 +14,9 @@ if [[ ! -d /tmp ]]; then
fi fi
chmod 1777 /tmp chmod 1777 /tmp
# Remove DigitalOcean Agent
apt-get -y purge droplet-agent
if [ -n "$(command -v yum)" ]; then if [ -n "$(command -v yum)" ]; then
yum update -y yum update -y
yum clean all yum clean all

View file

@ -14,6 +14,7 @@ set -eu
# disable user interactions # disable user interactions
export DEBIAN_FRONTEND="noninteractive" export DEBIAN_FRONTEND="noninteractive"
export UA_LOG_LEVEL="info"
export TMPDIR="/tmp" export TMPDIR="/tmp"
# add 4 GB of swap if no swap was configured yet # add 4 GB of swap if no swap was configured yet