Skip to content

Commit 0fc8694

Browse files
authored
Harmonize Script
1 parent 658c978 commit 0fc8694

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

install/komga-install.sh

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

1616
msg_info "Installing Dependencies"
17-
$STD apt-get install -y curl mc sudo openjdk-17-jre
17+
$STD apt-get install -y \
18+
curl \
19+
mc \
20+
sudo \
21+
openjdk-17-jre
1822
msg_ok "Installed Dependencies"
1923

20-
RELEASE=$(curl -s https://api.github.com/repos/gotson/komga/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
21-
2224
msg_info "Installing Komga"
25+
RELEASE=$(curl -s https://api.github.com/repos/gotson/komga/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
2326
wget -q https://github.com/gotson/komga/releases/download/${RELEASE}/komga-${RELEASE}.jar
2427
mkdir -p /opt/komga
2528
mv -f komga-${RELEASE}.jar /opt/komga/komga.jar
@@ -42,7 +45,6 @@ Restart=on-failure
4245
[Install]
4346
WantedBy=multi-user.target
4447
EOF
45-
systemctl -q daemon-reload
4648
systemctl enable --now -q komga
4749
msg_ok "Created Service"
4850

0 commit comments

Comments
 (0)