Skip to content

Commit 4b7e4ae

Browse files
committed
Change scripts to follow established conventions
1 parent 294c974 commit 4b7e4ae

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

‎ct/factorio.sh‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_
77
# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE
88
# Source: https://www.factorio.com/
99

10-
APP="factorio"
11-
var_tags="${var_tags:-appname}"
10+
APP="Factorio"
11+
var_tags="${var_tags:-gaming}"
1212
var_cpu="${var_cpu:-1}"
1313
var_ram="${var_ram:-2048}"
1414
var_disk="${var_disk:-8}"
@@ -17,9 +17,6 @@ var_version="${var_version:-13}"
1717
var_unprivileged="${var_unprivileged:-1}"
1818
var_arm64="${var_arm64:-no}" # Factorio headless is only published for Linux x64.
1919

20-
# Export only app-specific values read by install/appname-install.sh.
21-
# export var_admin_user="${var_admin_user:-}"
22-
2320
header_info "$APP"
2421
variables
2522
color
@@ -29,11 +26,14 @@ function update_script() {
2926
header_info
3027
check_container_storage
3128
check_container_resources
29+
3230
if [[ ! -x /opt/factorio/bin/x64/factorio ]]; then
3331
msg_error "No Factorio Installation Found!"
3432
exit 1
3533
fi
3634

35+
ensure_dependencies file xz-utils
36+
3737
msg_info "Stopping Factorio"
3838
systemctl stop factorio
3939
msg_ok "Stopped Factorio"
@@ -62,4 +62,7 @@ function update_script() {
6262
start
6363
build_container
6464
description
65-
msg_ok "Completed successfully!\n"
65+
66+
msg_ok "Completed Factorio setup successfully!\n"
67+
echo -e "${INFO}${YW}Connect in Factorio using the following address (UDP):${CL}"
68+
echo -e "${GATEWAY}${BGN}${IP}:34197${CL}"

‎install/factorio-install.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
# Copyright (c) 2021-2026 community-scripts ORG
44
# Author: William Lindholm (LindholmLabs)
5-
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
5+
# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE
66
# Source: https://www.factorio.com/
77

88
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
99
color
10+
verb_ip6
1011
catch_errors
1112
setting_up_container
1213
network_check

0 commit comments

Comments
 (0)