From 40a2a37ba6f0a35fda7c4f826a44cbdadf057621 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 12 Dec 2023 10:44:02 -0300 Subject: [PATCH] feat: directories --- pocketbased.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pocketbased.sh b/pocketbased.sh index 0e0b103..7592873 100755 --- a/pocketbased.sh +++ b/pocketbased.sh @@ -11,6 +11,14 @@ case $1 in *) test -f "${pid}" || exit 1 - daemonize -c /srv/pocketbase -p $pid -u nobody /usr/local/bin/syslogize /usr/bin/pocketbase serve --http [::]:8090 --automigrate + daemonize -c /srv/pocketbase -p $pid -u nobody \ + /usr/local/bin/syslogize \ + /usr/bin/pocketbase serve \ + --http [::]:8090 \ + --automigrate \ + --dir /srv/pocketbase/data \ + --migrationsDir /srv/pocketbase/migrations \ + --publicDir /srv/pocketbase/public \ + --hooksDir /srv/pocketbase/hooks ;; esac