Update miniflux
This commit is contained in:
parent
16c6da10ba
commit
c546422332
@ -15,15 +15,14 @@ update_os
|
||||
|
||||
|
||||
PG_VERSION=17 setup_postgresql
|
||||
DB_NAME=miniflux
|
||||
DB_USER=miniflux
|
||||
DB_PASS="$(openssl rand -base64 18 | cut -c1-13)"
|
||||
DB_NAME=miniflux2
|
||||
DB_USER=postgres
|
||||
DB_PASS=postgres
|
||||
$STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';"
|
||||
$STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER;"
|
||||
$STD sudo -u postgres psql -d "$DB_NAME" -c "CREATE EXTENSION hstore;"
|
||||
|
||||
|
||||
|
||||
fetch_and_deploy_gh_release "miniflux" "miniflux/v2" "binary" "latest"
|
||||
|
||||
|
||||
@ -32,14 +31,12 @@ ADMIN_NAME=admin
|
||||
ADMIN_PASS="$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)"
|
||||
cat <<EOF >/etc/miniflux.conf
|
||||
# See https://miniflux.app/docs/configuration.html
|
||||
#DATABASE_URL=postgres://$DB_USER:$DB_PASS@localhost:5432/$DB_NAME?sslmode=disable
|
||||
DATABASE_URL="user=$DB_USER password=$DB_PASS dbname=$DB_NAME"
|
||||
|
||||
CREATE_ADMIN=1
|
||||
ADMIN_USERNAME=$ADMIN_NAME
|
||||
ADMIN_PASSWORD=$ADMIN_PASS
|
||||
LISTEN_ADDR=0.0.0.0:8080
|
||||
EOF
|
||||
|
||||
{
|
||||
echo "Application Credentials"
|
||||
echo "DB_NAME: $DB_NAME"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user