diff --git a/ct/bentopdf.sh b/ct/bentopdf.sh deleted file mode 100644 index 0fb52a71..00000000 --- a/ct/bentopdf.sh +++ /dev/null @@ -1,114 +0,0 @@ -#!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) -# Copyright (c) 2021-2026 community-scripts ORG -# Author: vhsdream -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://github.com/alam00000/bentopdf - -APP="BentoPDF" -var_tags="${var_tags:-pdf-editor}" -var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-4096}" -var_disk="${var_disk:-4}" -var_os="${var_os:-debian}" -var_version="${var_version:-13}" -var_unprivileged="${var_unprivileged:-1}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -d /opt/bentopdf ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - NODE_VERSION="24" setup_nodejs - - if check_for_gh_release "bentopdf" "alam00000/bentopdf"; then - msg_info "Stopping Service" - systemctl stop bentopdf - msg_ok "Stopped Service" - - [[ -f /opt/bentopdf/.env.production ]] && cp /opt/bentopdf/.env.production /opt/production.env - - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "bentopdf" "alam00000/bentopdf" "tarball" "latest" "/opt/bentopdf" - - msg_info "Updating BentoPDF" - cd /opt/bentopdf - $STD npm ci --no-audit --no-fund - if [[ -f /opt/production.env ]]; then - mv /opt/production.env ./.env.production - else - cp ./.env.example ./.env.production - fi - export NODE_OPTIONS="--max-old-space-size=3072" - export SIMPLE_MODE=true - export VITE_USE_CDN=true - $STD npm run build:all - msg_ok "Updated BentoPDF" - - msg_info "Starting Service" - if ! command -v nginx &>/dev/null; then - ensure_dependencies nginx - cat <<'EOF' >/etc/nginx/sites-available/bentopdf -server { - listen 8080; - server_name _; - root /opt/bentopdf/dist; - index index.html; - - # Required for LibreOffice WASM (Word/Excel/PowerPoint to PDF via SharedArrayBuffer) - add_header Cross-Origin-Opener-Policy "same-origin" always; - add_header Cross-Origin-Embedder-Policy "require-corp" always; - add_header Cross-Origin-Resource-Policy "cross-origin" always; - add_header X-Content-Type-Options "nosniff" always; - add_header X-Frame-Options "SAMEORIGIN" always; - - gzip_static on; - - location / { - try_files $uri $uri/ $uri.html =404; - } - - error_page 404 /404.html; -} -EOF - rm -f /etc/nginx/sites-enabled/default - ln -sf /etc/nginx/sites-available/bentopdf /etc/nginx/sites-enabled/bentopdf - cat <<'EOF' >/etc/systemd/system/bentopdf.service -[Unit] -Description=BentoPDF Service -After=network.target - -[Service] -Type=simple -ExecStart=/usr/sbin/nginx -g "daemon off;" -ExecReload=/bin/kill -HUP $MAINPID -Restart=always - -[Install] -WantedBy=multi-user.target -EOF - systemctl daemon-reload - fi - systemctl start bentopdf - msg_ok "Started Service" - msg_ok "Updated successfully!" - fi - exit -} - -start -build_container -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 "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}" diff --git a/ct/yourls.sh b/ct/yourls.sh deleted file mode 100644 index c7a34cbb..00000000 --- a/ct/yourls.sh +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) -# Copyright (c) 2021-2026 community-scripts ORG -# Author: MickLesk (CanbiZ) -# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE -# Source: https://yourls.org/ - -APP="YOURLS" -var_tags="${var_tags:-url-shortener;php}" -var_cpu="${var_cpu:-1}" -var_ram="${var_ram:-512}" -var_disk="${var_disk:-4}" -var_os="${var_os:-debian}" -var_version="${var_version:-13}" -var_unprivileged="${var_unprivileged:-1}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - - if [[ ! -f /opt/yourls/yourls-loader.php ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - if check_for_gh_release "yourls" "YOURLS/YOURLS"; then - msg_info "Stopping Service" - systemctl stop nginx - msg_ok "Stopped Service" - - msg_info "Backing up Configuration" - cp -r /opt/yourls/user /opt/yourls_user.bak - msg_ok "Backed up Configuration" - - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "yourls" "YOURLS/YOURLS" "tarball" - chown -R www-data:www-data /opt/yourls - - msg_info "Restoring Configuration" - cp -r /opt/yourls_user.bak/. /opt/yourls/user/ - rm -rf /opt/yourls_user.bak - msg_ok "Restored Configuration" - - msg_info "Starting Service" - systemctl start nginx - msg_ok "Started Service" - msg_ok "Updated successfully!" - fi - exit -} - -start -build_container -description - -msg_ok "Completed Successfully!\n" -echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" -echo -e "${INFO}${YW} First, complete the database setup at:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}/admin/install.php${CL}" -echo -e "${INFO}${YW} Admin credentials are in the install log:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}grep -A2 'admin' /opt/yourls/user/config.php${CL}" diff --git a/install/bentopdf-install.sh b/install/bentopdf-install.sh deleted file mode 100644 index daa54911..00000000 --- a/install/bentopdf-install.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2026 community-scripts ORG -# Author: vhsdream -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://github.com/alam00000/bentopdf - -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 nginx -y -msg_ok "Installed Dependencies" - -NODE_VERSION="24" setup_nodejs -fetch_and_deploy_gh_release "bentopdf" "alam00000/bentopdf" "tarball" "latest" "/opt/bentopdf" - -msg_info "Setup BentoPDF" -cd /opt/bentopdf -$STD npm ci --no-audit --no-fund -cp ./.env.example ./.env.production -export NODE_OPTIONS="--max-old-space-size=3072" -export SIMPLE_MODE=true -export VITE_USE_CDN=true -$STD npm run build:all -msg_ok "Setup BentoPDF" - -msg_info "Creating Service" -cat <<'EOF' >/etc/nginx/sites-available/bentopdf -server { - listen 8080; - server_name _; - root /opt/bentopdf/dist; - index index.html; - - # Required for LibreOffice WASM (Word/Excel/PowerPoint to PDF via SharedArrayBuffer) - add_header Cross-Origin-Opener-Policy "same-origin" always; - add_header Cross-Origin-Embedder-Policy "require-corp" always; - add_header Cross-Origin-Resource-Policy "cross-origin" always; - add_header X-Content-Type-Options "nosniff" always; - add_header X-Frame-Options "SAMEORIGIN" always; - - gzip_static on; - - location / { - try_files $uri $uri/ $uri.html =404; - } - - error_page 404 /404.html; -} -EOF -rm -f /etc/nginx/sites-enabled/default -ln -sf /etc/nginx/sites-available/bentopdf /etc/nginx/sites-enabled/bentopdf -cat <<'EOF' >/etc/systemd/system/bentopdf.service -[Unit] -Description=BentoPDF Service -After=network.target - -[Service] -Type=simple -ExecStart=/usr/sbin/nginx -g "daemon off;" -ExecReload=/bin/kill -HUP $MAINPID -Restart=always - -[Install] -WantedBy=multi-user.target -EOF - -systemctl enable -q --now bentopdf -msg_ok "Created & started service" - -motd_ssh -customize -cleanup_lxc diff --git a/install/yourls-install.sh b/install/yourls-install.sh deleted file mode 100644 index e9edabe8..00000000 --- a/install/yourls-install.sh +++ /dev/null @@ -1,91 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2026 community-scripts ORG -# Author: MickLesk (CanbiZ) -# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE -# Source: https://yourls.org/ - -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 nginx -msg_ok "Installed Dependencies" - -setup_mariadb -MARIADB_DB_NAME="yourls" MARIADB_DB_USER="yourls" setup_mariadb_db -PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULE="mysql,mbstring,gd,xml,curl" setup_php - -fetch_and_deploy_gh_release "yourls" "YOURLS/YOURLS" "tarball" - -msg_info "Configuring YOURLS" -COOKIEKEY=$(openssl rand -hex 24) -YOURLS_PASS=$(openssl rand -base64 12 | tr -dc 'a-zA-Z0-9' | cut -c1-16) -cat </opt/yourls/user/config.php - '${YOURLS_PASS}', -]; -define( 'YOURLS_URL_CONVERT', 36 ); -define( 'YOURLS_DEBUG', false ); -EOF -chown -R www-data:www-data /opt/yourls -msg_ok "Configured YOURLS" - -msg_info "Configuring Nginx" -cat </etc/nginx/sites-available/yourls -server { - listen 80 default_server; - server_name _; - root /opt/yourls; - index index.php; - - location / { - try_files \$uri \$uri/ /yourls-loader.php\$is_args\$args; - } - - location ~ \.php\$ { - try_files \$uri =404; - fastcgi_split_path_info ^(.+\.php)(/.+)\$; - fastcgi_pass unix:/run/php/php8.3-fpm.sock; - fastcgi_index index.php; - include fastcgi_params; - fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name; - fastcgi_param PATH_INFO \$fastcgi_path_info; - } - - location ~* \.(jpg|jpeg|gif|css|png|js|ico|woff|woff2)\$ { - access_log off; - expires max; - } - - location ~ /\.ht { - deny all; - } -} -EOF -ln -sf /etc/nginx/sites-available/yourls /etc/nginx/sites-enabled/yourls -rm -f /etc/nginx/sites-enabled/default -$STD nginx -t -systemctl enable -q --now nginx -systemctl reload nginx -msg_ok "Configured Nginx" - -motd_ssh -customize -cleanup_lxc