Compare commits

..

1 Commits

Author SHA1 Message Date
push-app-to-main[bot]
167622aba8 Add stash (ct) 2026-09-08 06:12:11 +00:00
5 changed files with 62 additions and 63 deletions

View File

@@ -1,6 +0,0 @@
____ __
/ __ \___ _______ ______ / /_ ____ ___________
/ / / / _ \/ ___/ / / / __ \/ __ \/ __ `/ ___/ ___/
/ /_/ / __/ /__/ /_/ / /_/ / / / / /_/ / / / /
/_____/\___/\___/\__, / .___/_/ /_/\__,_/_/ /_/
/____/_/

6
ct/headers/stash Normal file
View File

@@ -0,0 +1,6 @@
_____ __ __
/ ___// /_____ ______/ /_
\__ \/ __/ __ `/ ___/ __ \
___/ / /_/ /_/ (__ ) / / /
/____/\__/\__,_/____/_/ /_/

View File

@@ -5,15 +5,16 @@ source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_
# 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/sirrobot01/decypharr
# Source: https://github.com/stashapp/stash
APP="Decypharr"
var_tags="${var_tags:-arr;debrid}"
APP="Stash"
var_tags="${var_tags:-media;organizer}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-8}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_gpu="${var_gpu:-yes}"
#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified
var_unprivileged="${var_unprivileged:-1}"
@@ -27,21 +28,20 @@ function update_script() {
check_container_storage
check_container_resources
if [[ ! -d /opt/decypharr ]]; then
if [[ ! -d /opt/stash ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "decypharr" "sirrobot01/decypharr"; then
if check_for_gh_release "stash" "stashapp/stash"; then
msg_info "Stopping Service"
systemctl stop decypharr
systemctl stop stash
msg_ok "Stopped Service"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "decypharr" "sirrobot01/decypharr" "prebuild" "latest" "/opt/decypharr" "decypharr_Linux_$(arch_resolve x86_64 arm64).tar.gz"
chmod +x /opt/decypharr/decypharr
fetch_and_deploy_gh_release "stash" "stashapp/stash" "singlefile" "latest" "/opt/stash" "$(arch_resolve stash-linux stash-linux-arm64v8)"
msg_info "Starting Service"
systemctl start decypharr
systemctl start stash
msg_ok "Started Service"
msg_ok "Updated successfully!"
fi
@@ -55,4 +55,4 @@ description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}:8282${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}:9999${CL}"

View File

@@ -1,47 +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://github.com/sirrobot01/decypharr
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt install -y fuse3
msg_ok "Installed Dependencies"
fetch_and_deploy_gh_release "decypharr" "sirrobot01/decypharr" "prebuild" "latest" "/opt/decypharr" "decypharr_Linux_$(arch_resolve x86_64 arm64).tar.gz"
chmod +x /opt/decypharr/decypharr
msg_info "Creating Service"
mkdir -p /opt/decypharr_data
cat <<EOF >/etc/systemd/system/decypharr.service
[Unit]
Description=Decypharr
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/decypharr
ExecStart=/opt/decypharr/decypharr --config /opt/decypharr_data
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now decypharr
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc

46
install/stash-install.sh Normal file
View File

@@ -0,0 +1,46 @@
#!/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/stashapp/stash
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
setup_ffmpeg
setup_hwaccel
fetch_and_deploy_gh_release "stash" "stashapp/stash" "singlefile" "latest" "/opt/stash" "$(arch_resolve stash-linux stash-linux-arm64v8)"
msg_info "Creating Service"
mkdir -p /opt/stash_data
cat <<EOF >/etc/systemd/system/stash.service
[Unit]
Description=Stash
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/stash
Environment=STASH_CONFIG_FILE=/opt/stash_data/config.yml
ExecStart=/opt/stash/stash
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now stash
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc