Skip to content

Commit bd5bdc4

Browse files
committed
bugfix
1 parent 3f02434 commit bd5bdc4

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

postgresql_setup.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ Table of Contents
66
- [Install PostgreSQL](#install-postgresql)
77
- [User Database](#user-database)
88
- [Socket Connection](#socket-connection)
9-
- [Shared Buffer](#shared-buffer) **to do
10-
- [Making Dumps](#creating-backups) ** to do
9+
- [Making Dumps](#creating-backups)
1110
##
1211

1312
1. ### Repository Keyring
@@ -73,12 +72,7 @@ createdb -O psqluser authdb && \
7372
createdb -O psqluser mapserverdb
7473
```
7574

76-
- Find the database(s) in the dump
77-
```sh
78-
postgres@host:~$ pg_dumpall
79-
```
80-
81-
- Verify you can log in with the user
75+
- Verify you can connect to a database with the user
8276
```sh
8377
postgres@host:~$ psql -d mapdb -h localhost -U psqluser
8478
```
@@ -111,6 +105,14 @@ root@host:~# /etc/init.d/postgresql restart
111105
user@host:~$ psql -d mapdb -U psqluser
112106
```
113107

108+
5. ### Backup and Restore
109+
110+
- To create a backup
111+
```sh
112+
postgres@host:~$ pg_dumpall
113+
```
114+
115+
114116
You now have a running PostgreSQL service. Next step is to [Compile Minetest](/compile_minetestserver.md) or [MultiCraft](/compile_multicraftserver.md)
115117

116118

securing_debian.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ root@host:~# apt-get install rsync
3333
root@host:~# mkdir -p /home/user/.ssh && \
3434
touch /home/user/.ssh/authorized_keys && \
3535
chown -R user:user /home/user/.ssh && \
36-
chmod -R 700 /home/user/.ssh
36+
chmod 700 /home/user/.ssh && \
37+
chmod 600 /home/user/.ssh/authorized_keys
3738
```
3839

3940
- Generate new SSH keypair on local machine

0 commit comments

Comments
 (0)