Compare commits

...
Author SHA1 Message Date
github-actions[bot] adda3496b2 Update CHANGELOG.md 2026-11-18 21:58:46 +00:00
push-app-to-main[bot] f2e26696a0 Add factorio (ct) (#18830) 2026-11-18 22:58:28 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] db6d93ba45 Update CHANGELOG.md (#18832)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-18 20:30:32 +00:00
Stijn 6bfe0568da WireGuard: increase Alpine disk size to 2 GB (#18831) 2026-11-18 21:29:51 +01:00
4 changed files with 124 additions and 2 deletions

No files matched your search

+6 -1
View File
@@ -588,10 +588,15 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
### 🆕 New Scripts
- Scrutiny [@MickLesk](https://github.com/MickLesk) ([#18827](https://github.com/community-scripts/ProxmoxVE/pull/18827))
- Factorio [@LindholmLabs](https://github.com/LindholmLabs) ([#18830](https://github.com/community-scripts/ProxmoxVE/pull/18830))
- Scrutiny [@MickLesk](https://github.com/MickLesk) ([#18827](https://github.com/community-scripts/ProxmoxVE/pull/18827))
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- WireGuard: increase Alpine disk size to 2 GB [@degeens](https://github.com/degeens) ([#18831](https://github.com/community-scripts/ProxmoxVE/pull/18831))
- #### ✨ New Features
- OpenCloud: bump to v9.2.0 [@SimKaiLong](https://github.com/SimKaiLong) ([#18822](https://github.com/community-scripts/ProxmoxVE/pull/18822))
+61
View File
@@ -0,0 +1,61 @@
#!/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: William Lindholm (LindholmLabs)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.factorio.com/
APP="Factorio"
var_tags="${var_tags:-gaming}"
var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-8}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}"
var_arm64="${var_arm64:-yes}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -x /opt/factorio/bin/$(arch_resolve "x64" "arm64")/factorio ]]; then
msg_error "No Factorio Installation Found!"
exit 1
fi
msg_info "Stopping Factorio"
systemctl stop factorio
msg_ok "Stopped Factorio"
create_backup /opt/factorio/config /opt/factorio/config-path.cfg \
/opt/factorio/server-settings.json /opt/factorio/saves /opt/factorio/mods \
/opt/factorio/player-data.json /opt/factorio/server-adminlist.json \
/opt/factorio/server-banlist.json /opt/factorio/server-whitelist.json
fetch_and_deploy_from_url "https://factorio.com/get-download/stable/headless/$(arch_resolve "linux64" "linux-arm64")" "/opt/factorio"
restore_backup
msg_info "Starting Factorio"
systemctl start factorio
msg_ok "Started Factorio"
msg_ok "Updated Factorio successfully!"
exit
}
start
build_container
description
msg_ok "Completed Factorio setup successfully!\n"
echo -e "${INFO}${YW}Connect in Factorio using the following address (UDP):${CL}"
echo -e "${GATEWAY}${BGN}${IP}:34197${CL}"
+1 -1
View File
@@ -19,7 +19,7 @@ fi
if [[ "${var_os:-}" == "alpine" ]]; then
var_ram="${var_ram:-256}"
var_disk="${var_disk:-1}"
var_disk="${var_disk:-2}"
var_version="${var_version:-3.24}"
else
var_ram="${var_ram:-1024}"
+56
View File
@@ -0,0 +1,56 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: William Lindholm (LindholmLabs)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.factorio.com/
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
fetch_and_deploy_from_url "https://factorio.com/get-download/stable/headless/$(arch_resolve "linux64" "linux-arm64")" "/opt/factorio"
msg_info "Configuring Factorio"
sed 's/"public":[[:space:]]*true/"public": false/' /opt/factorio/data/server-settings.example.json >/opt/factorio/server-settings.json
cat <<EOF >/opt/factorio/server-adminlist.json
[]
EOF
msg_ok "Configured Factorio"
msg_info "Creating Factorio Save"
mkdir -p /opt/factorio/saves
$STD /opt/factorio/bin/$(arch_resolve "x64" "arm64")/factorio --create /opt/factorio/saves/save.zip
msg_ok "Created Factorio Save"
msg_info "Creating Factorio Service"
cat <<EOF >/etc/systemd/system/factorio.service
[Unit]
Description=Factorio Headless Server
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/factorio
ExecStart=/opt/factorio/bin/$(arch_resolve "x64" "arm64")/factorio --start-server-load-latest --server-settings /opt/factorio/server-settings.json --server-adminlist /opt/factorio/server-adminlist.json
KillSignal=SIGINT
TimeoutStopSec=120
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now factorio
msg_ok "Created Factorio Service"
motd_ssh
customize
cleanup_lxc