diff --git a/ct/headers/linkstack b/ct/headers/linkstack new file mode 100644 index 000000000..c3413d299 --- /dev/null +++ b/ct/headers/linkstack @@ -0,0 +1,6 @@ + __ _ __ _____ __ __ + / / (_)___ / /__/ ___// /_____ ______/ /__ + / / / / __ \/ //_/\__ \/ __/ __ `/ ___/ //_/ + / /___/ / / / / ,< ___/ / /_/ /_/ / /__/ ,< +/_____/_/_/ /_/_/|_|/____/\__/\__,_/\___/_/|_| + diff --git a/ct/linkstack.sh b/ct/linkstack.sh new file mode 100644 index 000000000..f2a7972a8 --- /dev/null +++ b/ct/linkstack.sh @@ -0,0 +1,43 @@ +#!/usr/bin/env bash +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +# Copyright (c) 2021-2025 community-scripts ORG +# Author: Omar Minaya | MickLesk (CanbiZ) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://linkstack.org/ + +APP="LinkStack" +var_tags="${var_tags:-os}" +var_cpu="${var_cpu:-1}" +var_ram="${var_ram:-1024}" +var_disk="${var_disk:-5}" +var_os="${var_os:-debian}" +var_version="${var_version:-12}" +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 ~/.linkstack ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + PHP_VERSION="8.3" PHP_MODULE="sqlite3" PHP_APACHE="YES" setup_php + msg_warn "LinkStack should be updated via the user interface." + 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}${CL}" diff --git a/frontend/public/json/linkstack.json b/frontend/public/json/linkstack.json new file mode 100644 index 000000000..ae369b644 --- /dev/null +++ b/frontend/public/json/linkstack.json @@ -0,0 +1,44 @@ +{ + "name": "LinkStack", + "slug": "linkstack", + "categories": [ + 9 + ], + "date_created": "2025-07-22", + "type": "ct", + "updateable": true, + "privileged": false, + "config_path": "/var/www/html/linkstack/.env", + "interface_port": 80, + "documentation": "https://docs.linkstack.org/", + "website": "https://linkstack.org/", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/linkstack.webp", + "description": "LinkStack is an open-source, self-hosted alternative to Linktree, allowing users to create a customizable profile page to share multiple links, hosted on their own server.", + "install_methods": [ + { + "type": "default", + "script": "ct/linkstack.sh", + "resources": { + "cpu": 1, + "ram": 1024, + "hdd": 5, + "os": "Debian", + "version": "12" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [ + { + "text": "LinkStack can be updated via the user interface.", + "type": "info" + }, + { + "text": "Complete setup via the web interface at http:///. Check installation logs: `cat ~/linkstack-install.log`", + "type": "info" + } + ] +} diff --git a/install/linkstack-install.sh b/install/linkstack-install.sh new file mode 100644 index 000000000..95105bbf8 --- /dev/null +++ b/install/linkstack-install.sh @@ -0,0 +1,48 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2025 community-scripts ORG +# Author: Omar Minaya | MickLesk (CanbiZ) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://linkstack.org/ + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +PHP_VERSION="8.3" PHP_MODULE="sqlite3" PHP_APACHE="YES" setup_php +fetch_and_deploy_gh_release "linkstack" "linkstackorg/linkstack" "prebuild" "latest" "/var/www/html/linkstack" "linkstack.zip" + +msg_info "Configuring LinkStack" +$STD a2enmod rewrite +chown -R www-data:www-data /var/www/html/linkstack +chmod -R 755 /var/www/html/linkstack + +cat </etc/apache2/sites-available/linkstack.conf + + ServerAdmin webmaster@localhost + DocumentRoot /var/www/html/linkstack + ErrorLog /var/log/apache2/linkstack-error.log + CustomLog /var/log/apache2/linkstack-access.log combined + + Options Indexes FollowSymLinks + AllowOverride All + Require all granted + + +EOF +$STD a2dissite 000-default.conf +$STD a2ensite linkstack.conf +$STD systemctl restart apache2 +msg_ok "Configured LinkStack" + +motd_ssh +customize + +msg_info "Cleaning up" +$STD apt-get -y autoremove +$STD apt-get -y autoclean +msg_ok "Cleaned"