Skip to content

Commit 125f843

Browse files
authored
Added logging to service file (#3738)
1 parent a5acfd2 commit 125f843

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

install/paperless-gpt-install.sh

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ update_os
1515

1616
msg_info "Installing Dependencies"
1717
$STD apt-get install -y \
18-
gcc \
19-
gnupg \
20-
ca-certificates \
21-
musl-dev \
22-
mupdf \
23-
libc6-dev \
24-
musl-tools
18+
gcc \
19+
gnupg \
20+
ca-certificates \
21+
musl-dev \
22+
mupdf \
23+
libc6-dev \
24+
musl-tools
2525
msg_ok "Installed Dependencies"
2626

2727
msg_info "Setting up Node.js Repository"
@@ -66,16 +66,16 @@ msg_ok "Setup Paperless-GPT"
6666
mkdir -p /opt/paperless-gpt-data
6767
read -p "Do you want to enter the Paperless local URL now? (y/n) " input_url
6868
if [[ "$input_url" =~ ^[Yy]$ ]]; then
69-
read -p "Enter your Paperless-NGX instance URL (e.g., http://192.168.1.100:8000): " PAPERLESS_BASE_URL
69+
read -p "Enter your Paperless-NGX instance URL (e.g., http://192.168.1.100:8000): " PAPERLESS_BASE_URL
7070
else
71-
PAPERLESS_BASE_URL="http://your_paperless_ngx_url"
71+
PAPERLESS_BASE_URL="http://your_paperless_ngx_url"
7272
fi
7373

7474
read -p "Do you want to enter the Paperless API token now? (y/n) " input_token
7575
if [[ "$input_token" =~ ^[Yy]$ ]]; then
76-
read -p "Enter your Paperless API token: " PAPERLESS_API_TOKEN
76+
read -p "Enter your Paperless API token: " PAPERLESS_API_TOKEN
7777
else
78-
PAPERLESS_API_TOKEN="your_paperless_api_token"
78+
PAPERLESS_API_TOKEN="your_paperless_api_token"
7979
fi
8080

8181
msg_info "Setup Environment"
@@ -116,6 +116,8 @@ ExecStart=/opt/paperless-gpt/paperless-gpt
116116
Restart=always
117117
User=root
118118
EnvironmentFile=/opt/paperless-gpt-data/.env
119+
StandardOutput=append:/var/log/paperless-gpt.log
120+
StandardError=append:/var/log/paperless-gpt.log
119121
120122
[Install]
121123
WantedBy=multi-user.target
@@ -130,4 +132,4 @@ msg_info "Cleaning up"
130132
rm -f $temp_file
131133
$STD apt-get -y autoremove
132134
$STD apt-get -y autoclean
133-
msg_ok "Cleaned"
135+
msg_ok "Cleaned"

0 commit comments

Comments
 (0)