Compare commits

..

5 Commits

Author SHA1 Message Date
Sam Heinz d93baa09c5 Update ct/shiori.sh 2026-07-27 06:14:16 +10:00
Sam Heinz 29da1007f4 Update install/shiori-install.sh 2026-07-27 06:13:55 +10:00
Tobias 3bbe1f045b Update author information in shiori-install.sh 2026-07-26 19:00:16 +02:00
Tobias 2256414d03 Change author from GitHub Copilot to MickLesk 2026-07-26 18:59:50 +02:00
push-app-to-main[bot] 988a8b930f Add shiori (ct) 2026-07-26 11:07:09 +00:00
5 changed files with 72 additions and 66 deletions
+6
View File
@@ -0,0 +1,6 @@
_____ __ _ _
/ ___// /_ (_)___ _____(_)
\__ \/ __ \/ / __ \/ ___/ /
___/ / / / / / /_/ / / / /
/____/_/ /_/_/\____/_/ /_/
-6
View File
@@ -1,6 +0,0 @@
__ __ __
/ / / /___ ____ ____ ______/ /_____ __________
/ / / / __ \/ __ \/ __ `/ ___/ //_/ _ \/ ___/ ___/
/ /_/ / / / / /_/ / /_/ / /__/ ,< / __/ / / /
\____/_/ /_/ .___/\__,_/\___/_/|_|\___/_/ /_/
/_/
+14 -15
View File
@@ -3,13 +3,13 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://unpackerr.zip/
# Source: https://github.com/go-shiori/shiori
APP="Unpackerr"
var_tags="${var_tags:-downloads;arr;automation;extraction}"
APP="Shiori"
var_tags="${var_tags:-bookmarks;read-it-later;notes}"
var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-512}"
var_disk="${var_disk:-2}"
var_ram="${var_ram:-1024}"
var_disk="${var_disk:-4}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-yes}"
@@ -25,24 +25,23 @@ function update_script() {
check_container_storage
check_container_resources
if [[ ! -f /etc/unpackerr/unpackerr.conf ]]; then
if [[ ! -d /opt/shiori ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "unpackerr" "Unpackerr/unpackerr"; then
if check_for_gh_release "shiori" "go-shiori/shiori"; then
msg_info "Stopping Service"
systemctl stop unpackerr
systemctl stop shiori
msg_ok "Stopped Service"
create_backup /etc/unpackerr/unpackerr.conf
DPKG_FORCE_CONFOLD=1 fetch_and_deploy_gh_release "unpackerr" "Unpackerr/unpackerr" "binary" "latest" "/opt/unpackerr" "unpackerr_*_$(arch_resolve).deb"
create_backup /opt/shiori/data
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "shiori" "go-shiori/shiori" "prebuild" "latest" "/opt/shiori" "shiori_Linux_$(arch_resolve "x86_64" "aarch64")_*.tar.gz"
chmod +x /opt/shiori/shiori
restore_backup
msg_info "Starting Service"
systemctl start unpackerr
systemctl start shiori
msg_ok "Started Service"
msg_ok "Updated successfully!"
fi
@@ -55,5 +54,5 @@ description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW}Configure integrations in:${CL}"
echo -e "${GATEWAY}${BGN}/etc/unpackerr/unpackerr.conf${CL}"
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}:8080${CL}"
+52
View File
@@ -0,0 +1,52 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/go-shiori/shiori
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
fetch_and_deploy_gh_release "shiori" "go-shiori/shiori" "prebuild" "latest" "/opt/shiori" "shiori_Linux_$(arch_resolve "x86_64" "aarch64")_*.tar.gz"
msg_info "Configuring Shiori"
mkdir -p /opt/shiori/data
SECRET_KEY=$(tr -d '-' </proc/sys/kernel/random/uuid)
cat <<EOF >/opt/shiori/.env
SHIORI_DIR=/opt/shiori/data
SHIORI_HTTP_PORT=8080
SHIORI_HTTP_ADDRESS=0.0.0.0:
SHIORI_HTTP_SECRET_KEY=${SECRET_KEY}
EOF
msg_ok "Configured Shiori"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/shiori.service
[Unit]
Description=Shiori Bookmark Manager
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/shiori
EnvironmentFile=/opt/shiori/.env
ExecStart=/opt/shiori/shiori server
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now shiori
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc
-45
View File
@@ -1,45 +0,0 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://unpackerr.zip/
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
fetch_and_deploy_gh_release "unpackerr" "Unpackerr/unpackerr" "binary" "latest" "/opt/unpackerr" "unpackerr_*_$(arch_resolve).deb"
msg_info "Configuring Unpackerr"
mkdir -p /etc/unpackerr
cat <<EOF >/etc/unpackerr/unpackerr.conf
debug = false
quiet = false
activity = false
interval = "2m"
parallel = 1
file_mode = "0644"
dir_mode = "0755"
[webserver]
metrics = false
listen_addr = "0.0.0.0:5656"
[folders]
interval = "0s"
EOF
chmod 640 /etc/unpackerr/unpackerr.conf
msg_ok "Configured Unpackerr"
msg_info "Creating Service"
systemctl enable -q --now unpackerr
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc