Files
ProxmoxVE/ct/yourls.sh
T
github-actions[bot]andRögl-Brunner Michel ef9dd3d053 yourls: bump PHP from 8.3 to 8.4 (#19104)
* yourls: bump PHP from 8.3 to 8.4

* yourls: use the bumped PHP version in the ct update

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rögl-Brunner Michel <michel.roegl-brunner@htl-braunau.at>
2026-11-27 22:04:05 +01:00

65 lines
1.9 KiB
Bash

#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/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_arm64="${var_arm64:-yes}"
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"
create_backup /opt/yourls/user
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="mysql,mbstring,gd,xml,curl" setup_php
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "yourls" "YOURLS/YOURLS" "tarball"
restore_backup
chown -R www-data:www-data /opt/yourls
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 "${GATEWAY}${BGN}http://${IP}/admin/install.php${CL}"
echo -e "${INFO}${YW} Admin credentials are in the install log:${CL}"
echo -e "${GATEWAY}${BGN}grep -A2 'admin' /opt/yourls/user/config.php${CL}"