Compare commits

..

7 Commits

Author SHA1 Message Date
push-app-to-main[bot]
a481aa5c11 Add yourls (ct) 2026-03-28 21:08:58 +00:00
community-scripts-pr-app[bot]
022f177d0c Update CHANGELOG.md (#13372)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-03-28 14:50:59 +00:00
krazos
46dc693c99 Fix: update gokapi asset matching for v2.2.4+ naming convention (#13369) 2026-03-28 15:50:32 +01:00
community-scripts-pr-app[bot]
744097ac0d Update CHANGELOG.md (#13370)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-03-28 14:18:33 +00:00
Slaviša Arežina
2f3d393726 fix (#13365) 2026-03-28 15:18:10 +01:00
community-scripts-pr-app[bot]
1085aa5cf6 Update .app files (#13358)
Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
2026-03-27 22:54:56 +01:00
community-scripts-pr-app[bot]
f07f7993ab Update CHANGELOG.md (#13359)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-03-27 21:44:28 +00:00
7 changed files with 176 additions and 3 deletions

View File

@@ -426,11 +426,22 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
</details>
## 2026-03-28
### 🚀 Updated Scripts
- Fix: update gokapi asset matching for v2.2.4+ naming convention [@krazos](https://github.com/krazos) ([#13369](https://github.com/community-scripts/ProxmoxVE/pull/13369))
- #### 🐞 Bug Fixes
- Tandoor Recipes: Add missing env variable [@tremor021](https://github.com/tremor021) ([#13365](https://github.com/community-scripts/ProxmoxVE/pull/13365))
## 2026-03-27
### 🆕 New Scripts
- GeoPulse ([#13320](https://github.com/community-scripts/ProxmoxVE/pull/13320))
- Matter-Server ([#13355](https://github.com/community-scripts/ProxmoxVE/pull/13355))
- GeoPulse ([#13320](https://github.com/community-scripts/ProxmoxVE/pull/13320))
### 🚀 Updated Scripts

View File

@@ -32,7 +32,7 @@ function update_script() {
systemctl stop gokapi
msg_ok "Stopped Service"
fetch_and_deploy_gh_release "gokapi" "Forceu/Gokapi" "prebuild" "latest" "/opt/gokapi" "gokapi-linux_amd64.zip"
fetch_and_deploy_gh_release "gokapi" "Forceu/Gokapi" "prebuild" "latest" "/opt/gokapi" "*linux*amd64.zip"
msg_info "Starting Service"
systemctl start gokapi

View File

@@ -33,6 +33,10 @@ function update_script() {
exit
fi
if ! grep -q "^ALLOWED_HOSTS=" /opt/tandoor/.env; then
echo "ALLOWED_HOSTS=${LOCAL_IP}" >>/opt/tandoor/.env
fi
if check_for_gh_release "tandoor" "TandoorRecipes/recipes"; then
msg_info "Stopping Service"
systemctl stop tandoor

66
ct/yourls.sh Normal file
View File

@@ -0,0 +1,66 @@
#!/usr/bin/env bash
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/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}"

View File

@@ -13,7 +13,7 @@ setting_up_container
network_check
update_os
fetch_and_deploy_gh_release "gokapi" "Forceu/Gokapi" "prebuild" "latest" "/opt/gokapi" "gokapi-linux_amd64.zip"
fetch_and_deploy_gh_release "gokapi" "Forceu/Gokapi" "prebuild" "latest" "/opt/gokapi" "*linux*amd64.zip"
msg_info "Configuring Gokapi"
mkdir -p /opt/gokapi/{data,config}

View File

@@ -47,6 +47,7 @@ $STD yarn install
$STD yarn build
cat <<EOF >/opt/tandoor/.env
SECRET_KEY=$SECRET_KEY
ALLOWED_HOSTS=$LOCAL_IP
TZ=Europe/Berlin
DB_ENGINE=django.db.backends.postgresql

91
install/yourls-install.sh Normal file
View File

@@ -0,0 +1,91 @@
#!/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://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 <<EOF >/opt/yourls/user/config.php
<?php
define( 'YOURLS_DB_USER', '${MARIADB_DB_USER}' );
define( 'YOURLS_DB_PASS', '${MARIADB_DB_PASS}' );
define( 'YOURLS_DB_NAME', '${MARIADB_DB_NAME}' );
define( 'YOURLS_DB_HOST', 'localhost' );
define( 'YOURLS_DB_PREFIX', 'yourls_' );
define( 'YOURLS_SITE', 'http://${LOCAL_IP}' );
define( 'YOURLS_LANG', '' );
define( 'YOURLS_UNIQUE_URLS', true );
define( 'YOURLS_PRIVATE', true );
define( 'YOURLS_COOKIEKEY', '${COOKIEKEY}' );
\$yourls_user_passwords = [
'admin' => '${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 <<EOF >/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