mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-03 23:45:59 +00:00
IronClaw: Install keychain dependencies and launch in a DBus session (#13692)
This commit is contained in:
committed by
GitHub
parent
6a86f52c0e
commit
3dd3040010
@@ -14,7 +14,7 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apk add openssl
|
$STD apk add openssl dbus gnome-keyring
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing PostgreSQL"
|
msg_info "Installing PostgreSQL"
|
||||||
@@ -57,7 +57,8 @@ cat <<EOF >/etc/init.d/ironclaw
|
|||||||
|
|
||||||
name="IronClaw"
|
name="IronClaw"
|
||||||
description="IronClaw AI Agent"
|
description="IronClaw AI Agent"
|
||||||
command="/usr/local/bin/ironclaw"
|
command="/usr/bin/dbus-run-session"
|
||||||
|
command_args="/usr/local/bin/ironclaw"
|
||||||
command_background=true
|
command_background=true
|
||||||
pidfile="/run/ironclaw.pid"
|
pidfile="/run/ironclaw.pid"
|
||||||
directory="/root"
|
directory="/root"
|
||||||
|
|||||||
@@ -13,6 +13,13 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
|
msg_info "Installing Dependencies"
|
||||||
|
$STD apt install -y \
|
||||||
|
dbus-user-session \
|
||||||
|
gnome-keyring \
|
||||||
|
libsecret-tools
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
PG_VERSION="17" PG_MODULES="pgvector" setup_postgresql
|
PG_VERSION="17" PG_MODULES="pgvector" setup_postgresql
|
||||||
PG_DB_NAME="ironclaw" PG_DB_USER="ironclaw" PG_DB_EXTENSIONS="vector" setup_postgresql_db
|
PG_DB_NAME="ironclaw" PG_DB_USER="ironclaw" PG_DB_EXTENSIONS="vector" setup_postgresql_db
|
||||||
|
|
||||||
@@ -46,7 +53,8 @@ After=network.target postgresql.service
|
|||||||
Type=simple
|
Type=simple
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/root
|
WorkingDirectory=/root
|
||||||
ExecStart=/usr/local/bin/ironclaw
|
EnvironmentFile=/root/.ironclaw/.env
|
||||||
|
ExecStart=/usr/bin/dbus-run-session /usr/local/bin/ironclaw
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user