Compare commits

..

1 Commits

Author SHA1 Message Date
CanbiZ
f2611061fc kimai: Set global SQL mode to empty in install script 2025-10-30 12:02:29 +01:00
37 changed files with 124 additions and 238 deletions

View File

@@ -18,24 +18,6 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
- Reitti ([#8736](https://github.com/community-scripts/ProxmoxVE/pull/8736)) - Reitti ([#8736](https://github.com/community-scripts/ProxmoxVE/pull/8736))
- BentoPDF ([#8735](https://github.com/community-scripts/ProxmoxVE/pull/8735)) - BentoPDF ([#8735](https://github.com/community-scripts/ProxmoxVE/pull/8735))
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- Add explicit exit calls to update_script functions [@MickLesk](https://github.com/MickLesk) ([#8752](https://github.com/community-scripts/ProxmoxVE/pull/8752))
- kimai: Set global SQL mode to empty in install script [@MickLesk](https://github.com/MickLesk) ([#8747](https://github.com/community-scripts/ProxmoxVE/pull/8747))
- #### ✨ New Features
- core: add function cleanup_lxc [@MickLesk](https://github.com/MickLesk) ([#8749](https://github.com/community-scripts/ProxmoxVE/pull/8749))
- Asterisk: add interactive version selection to installer [@MickLesk](https://github.com/MickLesk) ([#8726](https://github.com/community-scripts/ProxmoxVE/pull/8726))
### 🌐 Website
- #### 📝 Script Information
- Cronicle: Update default credentials [@tremor021](https://github.com/tremor021) ([#8720](https://github.com/community-scripts/ProxmoxVE/pull/8720))
## 2025-10-29 ## 2025-10-29
### 🚀 Updated Scripts ### 🚀 Updated Scripts

View File

@@ -32,6 +32,7 @@ function update_script() {
msg_info "Restarting AdGuard Home" msg_info "Restarting AdGuard Home"
$STD rc-service adguardhome restart $STD rc-service adguardhome restart
msg_ok "Restarted AdGuard Home" msg_ok "Restarted AdGuard Home"
exit 0 exit 0
} }

View File

@@ -75,6 +75,7 @@ function update_script() {
else else
msg_ok "No update required. ${APP} is already at ${RELEASE}" msg_ok "No update required. ${APP} is already at ${RELEASE}"
fi fi
exit 0 exit 0
} }

View File

@@ -32,7 +32,7 @@ function update_script() {
msg_info "Restarting Caddy" msg_info "Restarting Caddy"
rc-service caddy restart rc-service caddy restart
msg_ok "Restarted Caddy" msg_ok "Restarted Caddy"
exit 0 exit
} }
start start

View File

@@ -41,7 +41,6 @@ function update_script() {
;; ;;
esac esac
done done
exit 0
} }
start start

View File

@@ -31,6 +31,7 @@ function update_script() {
msg_info "Restarting Forgejo" msg_info "Restarting Forgejo"
$STD rc-service forgejo restart $STD rc-service forgejo restart
msg_ok "Restarted Forgejo" msg_ok "Restarted Forgejo"
exit 0 exit 0
} }

View File

@@ -50,7 +50,7 @@ function update_script() {
else else
msg_ok "No update required. Garage is already at ${GITEA_RELEASE}" msg_ok "No update required. Garage is already at ${GITEA_RELEASE}"
fi fi
exit 0 exit
} }
start start

View File

@@ -48,6 +48,7 @@ function update_script() {
else else
msg_ok "No update required. ${APP} is already at ${RELEASE}" msg_ok "No update required. ${APP} is already at ${RELEASE}"
fi fi
exit 0 exit 0
} }

View File

@@ -32,7 +32,7 @@ function update_script() {
msg_info "Restarting Gitea" msg_info "Restarting Gitea"
rc-service gitea restart rc-service gitea restart
msg_ok "Restarted Gitea" msg_ok "Restarted Gitea"
exit 0 exit
} }
start start

View File

@@ -54,7 +54,6 @@ function update_script() {
;; ;;
esac esac
done done
exit 0
} }
start start

View File

@@ -41,6 +41,7 @@ function update_script() {
else else
msg_ok "No update required. ${APP} is already at ${RELEASE}" msg_ok "No update required. ${APP} is already at ${RELEASE}"
fi fi
exit 0 exit 0
} }

View File

@@ -55,7 +55,7 @@ function update_script() {
$STD docker compose -p komodo -f "$COMPOSE_FILE" --env-file /opt/komodo/compose.env pull $STD docker compose -p komodo -f "$COMPOSE_FILE" --env-file /opt/komodo/compose.env pull
$STD docker compose -p komodo -f "$COMPOSE_FILE" --env-file /opt/komodo/compose.env up -d $STD docker compose -p komodo -f "$COMPOSE_FILE" --env-file /opt/komodo/compose.env up -d
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"
exit 0 exit
} }
start start

View File

@@ -31,6 +31,7 @@ function update_script() {
msg_info "Restarting MariaDB" msg_info "Restarting MariaDB"
$STD rc-service mariadb restart $STD rc-service mariadb restart
msg_ok "Restarted MariaDB" msg_ok "Restarted MariaDB"
exit 0 exit 0
} }

View File

@@ -50,7 +50,6 @@ function update_script() {
;; ;;
esac esac
done done
exit 0
} }
start start

View File

@@ -31,6 +31,7 @@ function update_script() {
msg_info "Updating Node-RED" msg_info "Updating Node-RED"
$STD npm install -g --unsafe-perm node-red $STD npm install -g --unsafe-perm node-red
msg_ok "Updated Node-RED" msg_ok "Updated Node-RED"
exit 0 exit 0
} }

View File

@@ -31,6 +31,7 @@ function update_script() {
msg_info "Restarting PostgreSQL" msg_info "Restarting PostgreSQL"
$STD rc-service postgresql restart $STD rc-service postgresql restart
msg_ok "Restarted PostgreSQL" msg_ok "Restarted PostgreSQL"
exit 0 exit 0
} }

View File

@@ -31,6 +31,7 @@ function update_script() {
msg_info "Restarting Prometheus" msg_info "Restarting Prometheus"
$STD rc-service prometheus restart $STD rc-service prometheus restart
msg_ok "Restarted Prometheus" msg_ok "Restarted Prometheus"
exit 0 exit 0
} }

View File

@@ -38,6 +38,7 @@ function update_script() {
else else
msg_ok "No update required. ${APP} is already at ${RELEASE}" msg_ok "No update required. ${APP} is already at ${RELEASE}"
fi fi
exit 0 exit 0
} }

View File

@@ -41,8 +41,9 @@ function update_script() {
msg_info "Starting Service" msg_info "Starting Service"
$STD rc-service redlib start $STD rc-service redlib start
msg_ok "Started Service" msg_ok "Started Service"
msg_ok "Update Successful" msg_ok "Update Successful"
exit 0 exit
} }
start start

View File

@@ -31,7 +31,8 @@ function update_script() {
msg_info "Restarting Syncthing" msg_info "Restarting Syncthing"
$STD rc-service syncthing restart $STD rc-service syncthing restart
msg_ok "Restarted Syncthing" msg_ok "Restarted Syncthing"
exit 0
exit 1
} }
start start

View File

@@ -44,6 +44,7 @@ function update_script() {
else else
msg_ok "No update required. ${APP} is already at ${RELEASE}" msg_ok "No update required. ${APP} is already at ${RELEASE}"
fi fi
exit 0 exit 0
} }

View File

@@ -28,7 +28,7 @@ function update_script() {
msg_info "Upgrading traefik from edge" msg_info "Upgrading traefik from edge"
$STD apk add traefik --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community $STD apk add traefik --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
msg_ok "Upgraded traefik" msg_ok "Upgraded traefik"
exit 0 exit
} }
start start

View File

@@ -31,7 +31,8 @@ function update_script() {
msg_info "Restarting Transmission" msg_info "Restarting Transmission"
$STD rc-service transmission-daemon restart $STD rc-service transmission-daemon restart
msg_ok "Restarted Transmission" msg_ok "Restarted Transmission"
exit 0
exit 1
} }
start start

View File

@@ -36,6 +36,7 @@ function update_script() {
$STD ./wgd.sh start $STD ./wgd.sh start
msg_ok "WGDashboard updated" msg_ok "WGDashboard updated"
fi fi
exit 0 exit 0
} }

View File

@@ -54,9 +54,8 @@ function update_script() {
msg_error "PLEASE MAKE A BACKUP FIRST!" msg_error "PLEASE MAKE A BACKUP FIRST!"
exit exit
fi fi
msg_ok "Updated Successfully!" msg_ok "Updated Successfully"
fi fi
exit
} }
start start

View File

@@ -28,7 +28,6 @@ function update_script() {
exit exit
fi fi
msg_ok "${APP} updates itself automatically!" msg_ok "${APP} updates itself automatically!"
exit
} }
start start

View File

@@ -62,6 +62,7 @@ function update_script() {
sed -i "s/localhost:3012/${IP}:3012/g" /opt/cronicle/conf/config.json sed -i "s/localhost:3012/${IP}:3012/g" /opt/cronicle/conf/config.json
$STD /opt/cronicle/bin/control.sh start $STD /opt/cronicle/bin/control.sh start
msg_ok "Installed Cronicle Worker" msg_ok "Installed Cronicle Worker"
echo -e "\n Add Masters secret key to /opt/cronicle/conf/config.json \n" echo -e "\n Add Masters secret key to /opt/cronicle/conf/config.json \n"
exit exit
fi fi

View File

@@ -33,7 +33,6 @@ function update_script() {
chmod +x /opt/freshrss/cli/sensitive-log.sh chmod +x /opt/freshrss/cli/sensitive-log.sh
systemctl restart apache2 systemctl restart apache2
msg_ok "Fixed wrong permissions" msg_ok "Fixed wrong permissions"
exit
else else
msg_error "FreshRSS should be updated via the user interface." msg_error "FreshRSS should be updated via the user interface."
exit exit

View File

@@ -31,7 +31,6 @@ function update_script() {
$STD apt update $STD apt update
$STD apt -y upgrade $STD apt -y upgrade
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit
} }
start start

View File

@@ -50,7 +50,6 @@ function update_script() {
else else
msg_ok "$APP is already up to date (${RELEASE})" msg_ok "$APP is already up to date (${RELEASE})"
fi fi
exit
} }
start start

View File

@@ -40,7 +40,6 @@ function update_script() {
msg_ok "Started Service" msg_ok "Started Service"
msg_ok "Updated successfully!\n" msg_ok "Updated successfully!\n"
fi fi
exit
} }
start start

View File

@@ -40,7 +40,6 @@ function update_script() {
else else
msg_ok "${APP} is already up to date (${RELEASE})" msg_ok "${APP} is already up to date (${RELEASE})"
fi fi
exit
} }
start start

View File

@@ -28,8 +28,8 @@
} }
], ],
"default_credentials": { "default_credentials": {
"username": "admin", "username": null,
"password": "admin" "password": null
}, },
"notes": [ "notes": [
{ {

View File

@@ -1,69 +1,4 @@
[ [
{
"name": "OliveTin/OliveTin",
"version": "2025-10-30",
"date": "2025-10-30T10:02:40Z"
},
{
"name": "docker/compose",
"version": "v2.40.3",
"date": "2025-10-30T09:35:37Z"
},
{
"name": "prometheus/prometheus",
"version": "v0.307.3",
"date": "2025-10-30T08:13:40Z"
},
{
"name": "zabbix/zabbix",
"version": "8.0.0alpha1",
"date": "2025-10-30T07:59:41Z"
},
{
"name": "semaphoreui/semaphore",
"version": "v2.16.37",
"date": "2025-10-30T07:54:49Z"
},
{
"name": "mattermost/mattermost",
"version": "v10.5.14",
"date": "2025-10-30T06:43:58Z"
},
{
"name": "morpheus65535/bazarr",
"version": "v1.5.3",
"date": "2025-09-20T12:12:33Z"
},
{
"name": "Jackett/Jackett",
"version": "v0.24.222",
"date": "2025-10-30T05:55:32Z"
},
{
"name": "documenso/documenso",
"version": "v1.13.2",
"date": "2025-10-30T04:12:40Z"
},
{
"name": "ipfs/kubo",
"version": "v0.38.2",
"date": "2025-10-30T02:44:09Z"
},
{
"name": "jeedom/core",
"version": "4.4.20",
"date": "2025-10-30T00:27:05Z"
},
{
"name": "steveiliop56/tinyauth",
"version": "v4.0.1",
"date": "2025-10-15T16:53:55Z"
},
{
"name": "gtsteffaniak/filebrowser",
"version": "v1.0.0-beta",
"date": "2025-10-30T00:09:23Z"
},
{ {
"name": "BerriAI/litellm", "name": "BerriAI/litellm",
"version": "v1.77.7.dev3", "version": "v1.77.7.dev3",
@@ -96,7 +31,7 @@
}, },
{ {
"name": "runtipi/runtipi", "name": "runtipi/runtipi",
"version": "nightly", "version": "e2e",
"date": "2025-10-29T19:37:29Z" "date": "2025-10-29T19:37:29Z"
}, },
{ {
@@ -104,11 +39,6 @@
"version": "v6.4.2", "version": "v6.4.2",
"date": "2025-10-07T08:11:58Z" "date": "2025-10-07T08:11:58Z"
}, },
{
"name": "keycloak/keycloak",
"version": "26.4.2",
"date": "2025-10-23T06:59:32Z"
},
{ {
"name": "ollama/ollama", "name": "ollama/ollama",
"version": "v0.12.7-rc1", "version": "v0.12.7-rc1",
@@ -169,6 +99,11 @@
"version": "v1.141.0", "version": "v1.141.0",
"date": "2025-10-29T11:45:43Z" "date": "2025-10-29T11:45:43Z"
}, },
{
"name": "zabbix/zabbix",
"version": "7.4.4",
"date": "2025-10-29T11:31:26Z"
},
{ {
"name": "wazuh/wazuh", "name": "wazuh/wazuh",
"version": "coverity-w44-4.14.1", "version": "coverity-w44-4.14.1",
@@ -204,6 +139,16 @@
"version": "v0.99.0", "version": "v0.99.0",
"date": "2025-10-29T06:32:09Z" "date": "2025-10-29T06:32:09Z"
}, },
{
"name": "morpheus65535/bazarr",
"version": "v1.5.3",
"date": "2025-09-20T12:12:33Z"
},
{
"name": "Jackett/Jackett",
"version": "v0.24.206",
"date": "2025-10-29T05:53:41Z"
},
{ {
"name": "henrygd/beszel", "name": "henrygd/beszel",
"version": "v0.15.2", "version": "v0.15.2",
@@ -219,6 +164,16 @@
"version": "v1.0.1", "version": "v1.0.1",
"date": "2025-10-29T03:25:13Z" "date": "2025-10-29T03:25:13Z"
}, },
{
"name": "jeedom/core",
"version": "4.4.20",
"date": "2025-10-29T00:27:05Z"
},
{
"name": "steveiliop56/tinyauth",
"version": "v4.0.1",
"date": "2025-10-15T16:53:55Z"
},
{ {
"name": "tailscale/tailscale", "name": "tailscale/tailscale",
"version": "v1.90.4", "version": "v1.90.4",
@@ -239,10 +194,15 @@
"version": "v4.4.5", "version": "v4.4.5",
"date": "2025-10-28T18:35:47Z" "date": "2025-10-28T18:35:47Z"
}, },
{
"name": "keycloak/keycloak",
"version": "26.4.2",
"date": "2025-10-23T06:59:32Z"
},
{ {
"name": "javedh-dev/tracktor", "name": "javedh-dev/tracktor",
"version": "0.4.3", "version": "0.4.4",
"date": "2025-10-28T17:32:48Z" "date": "2025-10-28T17:39:14Z"
}, },
{ {
"name": "pi-hole/pi-hole", "name": "pi-hole/pi-hole",
@@ -264,6 +224,11 @@
"version": "v0.22.11", "version": "v0.22.11",
"date": "2025-10-28T15:48:53Z" "date": "2025-10-28T15:48:53Z"
}, },
{
"name": "mattermost/mattermost",
"version": "v10.5.13",
"date": "2025-10-28T15:48:37Z"
},
{ {
"name": "traefik/traefik", "name": "traefik/traefik",
"version": "v3.5.4", "version": "v3.5.4",
@@ -279,6 +244,11 @@
"version": "v25.4", "version": "v25.4",
"date": "2025-10-09T10:27:01Z" "date": "2025-10-09T10:27:01Z"
}, },
{
"name": "semaphoreui/semaphore",
"version": "v2.16.36",
"date": "2025-10-28T13:05:28Z"
},
{ {
"name": "n8n-io/n8n", "name": "n8n-io/n8n",
"version": "n8n@1.117.3", "version": "n8n@1.117.3",
@@ -304,6 +274,16 @@
"version": "v1.8.1", "version": "v1.8.1",
"date": "2025-10-28T08:07:33Z" "date": "2025-10-28T08:07:33Z"
}, },
{
"name": "gtsteffaniak/filebrowser",
"version": "v0.8.11-beta",
"date": "2025-10-28T01:15:42Z"
},
{
"name": "OliveTin/OliveTin",
"version": "3000.2.1",
"date": "2025-10-27T21:08:25Z"
},
{ {
"name": "goauthentik/authentik", "name": "goauthentik/authentik",
"version": "version/2025.10.0", "version": "version/2025.10.0",
@@ -454,6 +434,11 @@
"version": "2025.10.3", "version": "2025.10.3",
"date": "2025-10-24T01:08:22Z" "date": "2025-10-24T01:08:22Z"
}, },
{
"name": "documenso/documenso",
"version": "v1.13.1",
"date": "2025-10-23T23:52:45Z"
},
{ {
"name": "Cleanuparr/Cleanuparr", "name": "Cleanuparr/Cleanuparr",
"version": "v2.4.0", "version": "v2.4.0",
@@ -489,11 +474,21 @@
"version": "issue-596", "version": "issue-596",
"date": "2025-10-22T19:48:56Z" "date": "2025-10-22T19:48:56Z"
}, },
{
"name": "docker/compose",
"version": "v2.40.2",
"date": "2025-10-22T17:38:12Z"
},
{ {
"name": "louislam/uptime-kuma", "name": "louislam/uptime-kuma",
"version": "2.0.2", "version": "2.0.2",
"date": "2025-10-22T17:03:54Z" "date": "2025-10-22T17:03:54Z"
}, },
{
"name": "prometheus/prometheus",
"version": "v0.307.2",
"date": "2025-10-22T16:00:08Z"
},
{ {
"name": "NLnetLabs/unbound", "name": "NLnetLabs/unbound",
"version": "release-1.24.1", "version": "release-1.24.1",
@@ -799,6 +794,11 @@
"version": "11.0.1", "version": "11.0.1",
"date": "2025-10-09T12:34:15Z" "date": "2025-10-09T12:34:15Z"
}, },
{
"name": "ipfs/kubo",
"version": "v0.38.1",
"date": "2025-10-08T21:34:07Z"
},
{ {
"name": "autobrr/autobrr", "name": "autobrr/autobrr",
"version": "v1.68.0", "version": "v1.68.0",

View File

@@ -13,65 +13,8 @@ setting_up_container
network_check network_check
update_os update_os
ASTERISK_VERSIONS_URL="https://www.asterisk.org/downloads/asterisk/all-asterisk-versions/"
html=$(curl -fsSL "$ASTERISK_VERSIONS_URL")
LTS_VERSION=""
for major in 20 22 24 26; do
block=$(echo "$html" | awk "/Asterisk $major - LTS/,/<ul>/")
ver=$(echo "$block" | grep -oE 'Download Latest - [0-9]+\.[0-9]+(\.[0-9]+)?' | head -n1 | sed -E 's/.* - //')
if [ -n "$ver" ]; then
LTS_VERSION="$LTS_VERSION $ver"
fi
unset ver block
done
LTS_VERSION=$(echo "$LTS_VERSION" | xargs | tr ' ' '\n' | sort -V | tail -n1)
STD_VERSION=""
for major in 21 23 25 27; do
block=$(echo "$html" | awk "/Asterisk $major</,/<ul>/")
ver=$(echo "$block" | grep -oE 'Download (Latest - )?[0-9]+\.[0-9]+(\.[0-9]+)?' | head -n1 | sed -E 's/.* - //;s/Download //')
if [ -n "$ver" ]; then
STD_VERSION="$STD_VERSION $ver"
fi
unset ver block
done
STD_VERSION=$(echo "$STD_VERSION" | xargs | tr ' ' '\n' | sort -V | tail -n1)
cert_block=$(echo "$html" | awk '/Certified Asterisk/,/<ul>/')
CERT_VERSION=$(echo "$cert_block" | grep -oE 'Download Latest - [0-9]+\.[0-9]+-cert[0-9]+' | head -n1 | sed -E 's/.* - //')
cat <<EOF
Choose Asterisk version to install:
1) Latest Standard ($STD_VERSION)
2) Latest LTS ($LTS_VERSION)
3) Latest Certified ($CERT_VERSION)
EOF
read -rp "Enter choice [1-3]: " ASTERISK_CHOICE
case "$ASTERISK_CHOICE" in
2)
ASTERISK_VERSION="$LTS_VERSION"
;;
3)
ASTERISK_VERSION="$CERT_VERSION"
CERTIFIED=1
;;
*)
ASTERISK_VERSION="$STD_VERSION"
;;
esac
if [[ "$CERTIFIED" == "1" ]]; then
RELEASE="certified-asterisk-${ASTERISK_VERSION}.tar.gz"
DOWNLOAD_URL="https://downloads.asterisk.org/pub/telephony/certified-asterisk/$RELEASE"
else
RELEASE="asterisk-${ASTERISK_VERSION}.tar.gz"
DOWNLOAD_URL="https://downloads.asterisk.org/pub/telephony/asterisk/$RELEASE"
fi
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt install -y \ $STD apt-get install -y \
libsrtp2-dev \ libsrtp2-dev \
build-essential \ build-essential \
libedit-dev \ libedit-dev \
@@ -82,12 +25,13 @@ $STD apt install -y \
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Downloading Asterisk" msg_info "Downloading Asterisk"
RELEASE=$(curl -fsSL https://downloads.asterisk.org/pub/telephony/asterisk/ | grep -o 'asterisk-[0-9]\+-current\.tar\.gz' | sort -V | tail -n1)
temp_file=$(mktemp) temp_file=$(mktemp)
curl -fsSL "$DOWNLOAD_URL" -o "$temp_file" curl -fsSL "https://downloads.asterisk.org/pub/telephony/asterisk/${RELEASE}" -o "$temp_file"
mkdir -p /opt/asterisk mkdir -p /opt/asterisk
tar zxf "$temp_file" --strip-components=1 -C /opt/asterisk tar zxf "$temp_file" --strip-components=1 -C /opt/asterisk
cd /opt/asterisk cd /opt/asterisk
msg_ok "Downloaded Asterisk ($RELEASE)" msg_ok "Downloaded Asterisk"
msg_info "Installing Asterisk" msg_info "Installing Asterisk"
$STD ./contrib/scripts/install_prereq install $STD ./contrib/scripts/install_prereq install
@@ -107,7 +51,6 @@ customize
msg_info "Cleaning up" msg_info "Cleaning up"
rm -f "$temp_file" rm -f "$temp_file"
$STD apt -y autoremove $STD apt-get -y autoremove
$STD apt -y autoclean $STD apt-get -y autoclean
$STD apt -y clean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@@ -50,7 +50,7 @@ echo "export COMPOSER_ALLOW_SUPERUSER=1" >>~/.bashrc
source ~/.bashrc source ~/.bashrc
$STD composer install --no-dev --optimize-autoloader --no-interaction $STD composer install --no-dev --optimize-autoloader --no-interaction
cp .env.dist .env cp .env.dist .env
sed -i "/^DATABASE_URL=/c\DATABASE_URL=mysql://$DB_USER:$DB_PASS@127.0.0.1:3306/$DB_NAME?charset=utf8mb4&serverVersion=mariadb-$MYSQL_VERSION" /opt/kimai/.env sed -i "/^DATABASE_URL=/c\DATABASE_URL=mysql://$DB_USER:$DB_PASS@127.0.0.1:3306/$DB_NAME?charset=utf8mb4&serverVersion=$MYSQL_VERSION" /opt/kimai/.env
$STD bin/console kimai:install -n $STD bin/console kimai:install -n
$STD expect <<EOF $STD expect <<EOF
set timeout -1 set timeout -1

View File

@@ -368,51 +368,6 @@ run_container_safe() {
" || __handle_general_error "lxc-attach to CT $ct" " || __handle_general_error "lxc-attach to CT $ct"
} }
cleanup_lxc() {
msg_info "Cleaning up"
if is_alpine; then
$STD apk cache clean || true
rm -rf /var/cache/apk/*
else
$STD apt -y autoremove || true
$STD apt -y autoclean || true
$STD apt -y clean || true
fi
rm -rf /tmp/* /var/tmp/*
# Remove temp files created by mktemp/tempfile
find /tmp /var/tmp -type f -name 'tmp*' -delete 2>/dev/null || true
find /tmp /var/tmp -type f -name 'tempfile*' -delete 2>/dev/null || true
find /var/log -type f -exec truncate -s 0 {} +
# Python pip
if command -v pip &>/dev/null; then pip cache purge || true; fi
# Python uv
if command -v uv &>/dev/null; then uv cache clear || true; fi
# Node.js npm
if command -v npm &>/dev/null; then npm cache clean --force || true; fi
# Node.js yarn
if command -v yarn &>/dev/null; then yarn cache clean || true; fi
# Node.js pnpm
if command -v pnpm &>/dev/null; then pnpm store prune || true; fi
# Go
if command -v go &>/dev/null; then go clean -cache -modcache || true; fi
# Rust cargo
if command -v cargo &>/dev/null; then cargo clean || true; fi
# Ruby gem
if command -v gem &>/dev/null; then gem cleanup || true; fi
# Composer (PHP)
if command -v composer &>/dev/null; then composer clear-cache || true; fi
if command -v journalctl &>/dev/null; then
$STD journalctl --rotate
$STD journalctl --vacuum-time=10m
fi
msg_ok "Cleaned"
}
check_or_create_swap() { check_or_create_swap() {
msg_info "Checking for active swap" msg_info "Checking for active swap"