Skip to content

Commit 1bf83a1

Browse files
committed
Fix postgres and add 13, 15, and 17
Resolves #7
1 parent 0099f22 commit 1bf83a1

File tree

5 files changed

+164
-8
lines changed

5 files changed

+164
-8
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
3+
"meta": {
4+
"version": "PTDL_v2",
5+
"update_url": null
6+
},
7+
"exported_at": "2025-01-26T01:12:12+00:00",
8+
"name": "Postgres 13",
9+
"author": "[email protected]",
10+
"description": "A default Postgres install that is not really editable.",
11+
"features": [],
12+
"docker_images": {
13+
"ghcr.io\/ptero-eggs\/yolks:postgres_13": "ghcr.io\/ptero-eggs\/yolks:postgres_13"
14+
},
15+
"file_denylist": [],
16+
"startup": "postgres -D \/home\/container\/postgres_db\/ & wait-port; psql -h127.0.0.1 -p{{SERVER_PORT}} --dbname postgres",
17+
"config": {
18+
"files": "{\r\n \"postgres_db\/postgresql.conf\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"#port =\": \"port = {{server.build.default.port}}\",\r\n \"#external_pid_file =\": \"external_pid_file = '\/home\/container\/postgres_db\/run\/postgres.pid'\",\r\n \"#unix_socket_directories =\": \"unix_socket_directories = '\/home\/container\/postgres_db\/run\/'\"\r\n }\r\n }\r\n}",
19+
"startup": "{\r\n \"done\": \"database system is ready to accept connections\"\r\n}",
20+
"logs": "{}",
21+
"stop": "\\q"
22+
},
23+
"scripts": {
24+
"installation": {
25+
"script": "#! \/bin\/ash\r\nadduser -D -h \/home\/container container\r\n\r\nchown -R container: \/mnt\/server\/\r\n\r\nsu container -c 'initdb -D \/mnt\/server\/postgres_db\/ -A md5 -U \"$PGUSER\" --pwfile=<(echo \"$PGPASSWORD\")'\r\n\r\nmkdir -p \/mnt\/server\/postgres_db\/run\/\r\n\r\n## Add default \"allow from all\" auth rule to pg_hba\r\nif ! grep -q \"# Custom rules\" \"\/mnt\/server\/postgres_db\/pg_hba.conf\"; then\r\n echo -e \"# Custom rules\\nhost all all 0.0.0.0\/0 md5\" >> \"\/mnt\/server\/postgres_db\/pg_hba.conf\"\r\nfi\r\n\r\necho -e \"Done\"",
26+
"container": "postgres:13-alpine",
27+
"entrypoint": "bash"
28+
}
29+
},
30+
"variables": [
31+
{
32+
"name": "Superuser Name",
33+
"description": "The username for the postgres superuser",
34+
"env_variable": "PGUSER",
35+
"default_value": "pterodactyl",
36+
"user_viewable": true,
37+
"user_editable": false,
38+
"rules": "required|string|max:20",
39+
"field_type": "text"
40+
},
41+
{
42+
"name": "Superuser Password",
43+
"description": "The postgres super user password with a strong default.\r\nYou should be generating new ones for each server.\r\nIf you don't then users can hit other users DB's",
44+
"env_variable": "PGPASSWORD",
45+
"default_value": "Pl3453Ch4n63M3!",
46+
"user_viewable": true,
47+
"user_editable": false,
48+
"rules": "required|string|max:20",
49+
"field_type": "text"
50+
}
51+
]
52+
}

database/sql/postgres/egg-postgres14.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
"version": "PTDL_v2",
55
"update_url": null
66
},
7-
"exported_at": "2023-12-12T15:32:12+01:00",
7+
"exported_at": "2025-01-26T01:12:12+00:00",
88
"name": "Postgres 14",
99
"author": "[email protected]",
1010
"description": "A default Postgres install that is not really editable.",
11-
"features": null,
11+
"features": [],
1212
"docker_images": {
1313
"ghcr.io\/ptero-eggs\/yolks:postgres_14": "ghcr.io\/ptero-eggs\/yolks:postgres_14"
1414
},
1515
"file_denylist": [],
16-
"startup": "postgres -D \/home\/container\/postgres_db\/",
16+
"startup": "postgres -D \/home\/container\/postgres_db\/ & wait-port; psql -h127.0.0.1 -p{{SERVER_PORT}} --dbname postgres",
1717
"config": {
1818
"files": "{\r\n \"postgres_db\/postgresql.conf\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"#port =\": \"port = {{server.build.default.port}}\",\r\n \"#external_pid_file =\": \"external_pid_file = '\/home\/container\/postgres_db\/run\/postgres.pid'\",\r\n \"#unix_socket_directories =\": \"unix_socket_directories = '\/home\/container\/postgres_db\/run\/'\"\r\n }\r\n }\r\n}",
1919
"startup": "{\r\n \"done\": \"database system is ready to accept connections\"\r\n}",
2020
"logs": "{}",
21-
"stop": "^C"
21+
"stop": "\\q"
2222
},
2323
"scripts": {
2424
"installation": {
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
3+
"meta": {
4+
"version": "PTDL_v2",
5+
"update_url": null
6+
},
7+
"exported_at": "2025-01-26T01:12:12+00:00",
8+
"name": "Postgres 15",
9+
"author": "[email protected]",
10+
"description": "A default Postgres install that is not really editable.",
11+
"features": [],
12+
"docker_images": {
13+
"ghcr.io\/ptero-eggs\/yolks:postgres_15": "ghcr.io\/ptero-eggs\/yolks:postgres_15"
14+
},
15+
"file_denylist": [],
16+
"startup": "postgres -D \/home\/container\/postgres_db\/ & wait-port; psql -h127.0.0.1 -p{{SERVER_PORT}} --dbname postgres",
17+
"config": {
18+
"files": "{\r\n \"postgres_db\/postgresql.conf\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"#port =\": \"port = {{server.build.default.port}}\",\r\n \"#external_pid_file =\": \"external_pid_file = '\/home\/container\/postgres_db\/run\/postgres.pid'\",\r\n \"#unix_socket_directories =\": \"unix_socket_directories = '\/home\/container\/postgres_db\/run\/'\"\r\n }\r\n }\r\n}",
19+
"startup": "{\r\n \"done\": \"database system is ready to accept connections\"\r\n}",
20+
"logs": "{}",
21+
"stop": "\\q"
22+
},
23+
"scripts": {
24+
"installation": {
25+
"script": "#! \/bin\/ash\r\nadduser -D -h \/home\/container container\r\n\r\nchown -R container: \/mnt\/server\/\r\n\r\nsu container -c 'initdb -D \/mnt\/server\/postgres_db\/ -A md5 -U \"$PGUSER\" --pwfile=<(echo \"$PGPASSWORD\")'\r\n\r\nmkdir -p \/mnt\/server\/postgres_db\/run\/\r\n\r\n## Add default \"allow from all\" auth rule to pg_hba\r\nif ! grep -q \"# Custom rules\" \"\/mnt\/server\/postgres_db\/pg_hba.conf\"; then\r\n echo -e \"# Custom rules\\nhost all all 0.0.0.0\/0 md5\" >> \"\/mnt\/server\/postgres_db\/pg_hba.conf\"\r\nfi\r\n\r\necho -e \"Done\"",
26+
"container": "postgres:15-alpine",
27+
"entrypoint": "bash"
28+
}
29+
},
30+
"variables": [
31+
{
32+
"name": "Superuser Name",
33+
"description": "The username for the postgres superuser",
34+
"env_variable": "PGUSER",
35+
"default_value": "pterodactyl",
36+
"user_viewable": true,
37+
"user_editable": false,
38+
"rules": "required|string|max:20",
39+
"field_type": "text"
40+
},
41+
{
42+
"name": "Superuser Password",
43+
"description": "The postgres super user password with a strong default.\r\nYou should be generating new ones for each server.\r\nIf you don't then users can hit other users DB's",
44+
"env_variable": "PGPASSWORD",
45+
"default_value": "Pl3453Ch4n63M3!",
46+
"user_viewable": true,
47+
"user_editable": false,
48+
"rules": "required|string|max:20",
49+
"field_type": "text"
50+
}
51+
]
52+
}

database/sql/postgres/egg-postgres16.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
"version": "PTDL_v2",
55
"update_url": null
66
},
7-
"exported_at": "2023-12-12T15:33:25+01:00",
7+
"exported_at": "2025-01-26T01:12:12+00:00",
88
"name": "Postgres 16",
99
"author": "[email protected]",
1010
"description": "A default Postgres install that is not really editable.",
11-
"features": null,
11+
"features": [],
1212
"docker_images": {
1313
"ghcr.io\/ptero-eggs\/yolks:postgres_16": "ghcr.io\/ptero-eggs\/yolks:postgres_16"
1414
},
1515
"file_denylist": [],
16-
"startup": "postgres -D \/home\/container\/postgres_db\/",
16+
"startup": "postgres -D \/home\/container\/postgres_db\/ & wait-port; psql -h127.0.0.1 -p{{SERVER_PORT}} --dbname postgres",
1717
"config": {
1818
"files": "{\r\n \"postgres_db\/postgresql.conf\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"#port =\": \"port = {{server.build.default.port}}\",\r\n \"#external_pid_file =\": \"external_pid_file = '\/home\/container\/postgres_db\/run\/postgres.pid'\",\r\n \"#unix_socket_directories =\": \"unix_socket_directories = '\/home\/container\/postgres_db\/run\/'\"\r\n }\r\n }\r\n}",
1919
"startup": "{\r\n \"done\": \"database system is ready to accept connections\"\r\n}",
2020
"logs": "{}",
21-
"stop": "^C"
21+
"stop": "\\q"
2222
},
2323
"scripts": {
2424
"installation": {
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
3+
"meta": {
4+
"version": "PTDL_v2",
5+
"update_url": null
6+
},
7+
"exported_at": "2025-01-26T01:12:12+00:00",
8+
"name": "Postgres 17",
9+
"author": "[email protected]",
10+
"description": "A default Postgres install that is not really editable.",
11+
"features": [],
12+
"docker_images": {
13+
"ghcr.io\/ptero-eggs\/yolks:postgres_17": "ghcr.io\/ptero-eggs\/yolks:postgres_17"
14+
},
15+
"file_denylist": [],
16+
"startup": "postgres -D \/home\/container\/postgres_db\/ & wait-port; psql -h127.0.0.1 -p{{SERVER_PORT}} --dbname postgres",
17+
"config": {
18+
"files": "{\r\n \"postgres_db\/postgresql.conf\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"#port =\": \"port = {{server.build.default.port}}\",\r\n \"#external_pid_file =\": \"external_pid_file = '\/home\/container\/postgres_db\/run\/postgres.pid'\",\r\n \"#unix_socket_directories =\": \"unix_socket_directories = '\/home\/container\/postgres_db\/run\/'\"\r\n }\r\n }\r\n}",
19+
"startup": "{\r\n \"done\": \"database system is ready to accept connections\"\r\n}",
20+
"logs": "{}",
21+
"stop": "\\q"
22+
},
23+
"scripts": {
24+
"installation": {
25+
"script": "#! \/bin\/ash\r\nadduser -D -h \/home\/container container\r\n\r\nchown -R container: \/mnt\/server\/\r\n\r\nsu container -c 'initdb -D \/mnt\/server\/postgres_db\/ -A md5 -U \"$PGUSER\" --pwfile=<(echo \"$PGPASSWORD\")'\r\n\r\nmkdir -p \/mnt\/server\/postgres_db\/run\/\r\n\r\n## Add default \"allow from all\" auth rule to pg_hba\r\nif ! grep -q \"# Custom rules\" \"\/mnt\/server\/postgres_db\/pg_hba.conf\"; then\r\n echo -e \"# Custom rules\\nhost all all 0.0.0.0\/0 md5\" >> \"\/mnt\/server\/postgres_db\/pg_hba.conf\"\r\nfi\r\n\r\necho -e \"Done\"",
26+
"container": "postgres:17-alpine",
27+
"entrypoint": "bash"
28+
}
29+
},
30+
"variables": [
31+
{
32+
"name": "Superuser Name",
33+
"description": "The username for the postgres superuser",
34+
"env_variable": "PGUSER",
35+
"default_value": "pterodactyl",
36+
"user_viewable": true,
37+
"user_editable": false,
38+
"rules": "required|string|max:20",
39+
"field_type": "text"
40+
},
41+
{
42+
"name": "Superuser Password",
43+
"description": "The postgres super user password with a strong default.\r\nYou should be generating new ones for each server.\r\nIf you don't then users can hit other users DB's",
44+
"env_variable": "PGPASSWORD",
45+
"default_value": "Pl3453Ch4n63M3!",
46+
"user_viewable": true,
47+
"user_editable": false,
48+
"rules": "required|string|max:20",
49+
"field_type": "text"
50+
}
51+
]
52+
}

0 commit comments

Comments
 (0)