KavitaReader: Difference between revisions
From FlowerHouseWiki
Line 70: | Line 70: | ||
== Update Script == | == Update Script == | ||
<p>Bash script to update | <p>Bash script to update kavita reader:</p> | ||
<syntaxhighlight lang="bash" line> | <syntaxhighlight lang="bash" line> | ||
#!/bin/bash | #!/bin/bash | ||
Line 81: | Line 81: | ||
echo -e "-------------------------------------------------------------------------------------------" | echo -e "-------------------------------------------------------------------------------------------" | ||
echo -e "- Update | echo -e "- Update p4d to version ${version}?" | ||
echo -e "-------------------------------------------------------------------------------------------" | echo -e "-------------------------------------------------------------------------------------------" | ||
Line 92: | Line 92: | ||
fi | fi | ||
wget https:// | systemctl stop kavita | ||
tar xvf | wget https://github.com/Kareadita/Kavita/releases/download/v${version}/kavita-linux-x64.tar.gz | ||
rm | tar -xvf kavita-linux-x64.tar.gz | ||
cp / | rm kavita-linux-x64.tar.gz | ||
rm -r / | cp Kavita/* /opt/Kavita -R | ||
rm -r Kavita | |||
chown -R kavita:kavita /opt/Kavita | |||
chmod -R 775 /opt/Kavita | |||
systemctl start kavita | |||
echo -e "-------------------------------------------------------------------------------------------" | echo -e "-------------------------------------------------------------------------------------------" |
Revision as of 23:47, 21 February 2022
IP: | 192.168.88.17 |
---|---|
MAC: | F2:1A:93:6C:B2:83 |
Domain: | reader.flowerhouse.at |
OS: | Debian Bullseye |
---|---|
RAM: | 1024MB |
Cores: | 4 |
Privileged: | Yes |
The KavitaReader-LXC is reachable under 192.168.88.17
which is located in the ServerVLAN.
The subdomain is reader.flowerhouse.at which is handled by the ReverseProxy.
Basic Setup/Update
Download latest version
wget https://github.com/Kareadita/Kavita/releases/download/v0.?.?/kavita-linux-x64.tar.gz
Untar it
tar -xvf kavita-linux-x64.tar.gz
Copy/Replace to path
cp Kavita/* /opt/Kavita -R
rm -r Kavita
Set rights for files
chown -R kavita:kavita Kavita
chmod -R 775 Kavita
systemd service
Create service file
nano /etc/systemd/system/kavita.service
Paste following content
[Unit]
Description=Kavita Server
After=network.target
[Service]
User=kavita
Group=jellyfin
Type=simple
WorkingDirectory=/opt/Kavita
ExecStart=/opt/Kavita/Kavita
TimeoutStopSec=20
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target
Reload systemd, enable at boot and start
systemctl reload
systemctl enable kavita
systemctl start kavita
Update Script
Bash script to update kavita reader:
#!/bin/bash
echo -e "-------------------------------------------------------------------------------------------"
echo -e "- Which version do you want to update to?"
echo -e "-------------------------------------------------------------------------------------------"
read version
echo -e "-------------------------------------------------------------------------------------------"
echo -e "- Update p4d to version ${version}?"
echo -e "-------------------------------------------------------------------------------------------"
echo -e -n "Continue? [y/N]"
echo ""
read -n 1 c
if [ "${c}" != "y" ]; then
exit 0
fi
systemctl stop kavita
wget https://github.com/Kareadita/Kavita/releases/download/v${version}/kavita-linux-x64.tar.gz
tar -xvf kavita-linux-x64.tar.gz
rm kavita-linux-x64.tar.gz
cp Kavita/* /opt/Kavita -R
rm -r Kavita
chown -R kavita:kavita /opt/Kavita
chmod -R 775 /opt/Kavita
systemctl start kavita
echo -e "-------------------------------------------------------------------------------------------"
echo -e "- Update to version ${version} completed!"
echo -e "-------------------------------------------------------------------------------------------"