CT Linkwarden Postgresq: Debian 13 fixes
linkwarden: removed unnecessary build step, fixed deploy command postgresql: locked major version, bumpt it from 17 to 18, updated config for compatibility, added sleep to config to make sure Postgres is up aptcacherng: skips overwriting existing service symlink
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"preferences":
|
||||
{
|
||||
"misc:themes:theme": "system"
|
||||
"misc:user_interface:theme": "system"
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@ read -p "Enter your e-mail for pgAdmin login: " PostgressAdminMail
|
||||
read -p "Enter new password for pgAdmin and postgresql database admin: " -s NewPostgressPassword
|
||||
echo
|
||||
echo "Please wait..."
|
||||
sleep 30
|
||||
|
||||
#Configure Postgresql
|
||||
su postgres -c "psql -c \"alter user postgres with password '$NewPostgressPassword';\""
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#!/bin/sh
|
||||
#Setup postgresql
|
||||
printf "\n#User entries (Make sure to reload postgressql after updating this file) \n# TYPE DATABASE USER ADDRESS METHOD\n" >> /etc/postgresql/17/main/pg_hba.conf
|
||||
sed -i "s|#listen_addresses = 'localhost'|listen_addresses = '*' |" /etc/postgresql/17/main/postgresql.conf
|
||||
PGVersion=$(pg_config --version |awk '{split($2,a,"."); print a[1]}')
|
||||
printf "\n#User entries (Make sure to reload postgressql after updating this file) \n# TYPE DATABASE USER ADDRESS METHOD\n" >> /etc/postgresql/$PGVersion/main/pg_hba.conf
|
||||
sed -i "s|#listen_addresses = 'localhost'|listen_addresses = '*' |" /etc/postgresql/$PGVersion/main/postgresql.conf
|
||||
|
||||
#Setup pgadmin
|
||||
adduser --system --shell /bin/false --ingroup www-data --disabled-password --disabled-login --home /var/lib/www/pgadmin pgadmin
|
||||
|
||||
Reference in New Issue
Block a user