Skip to content

Commit 9a24817

Browse files
author
Benjamin Zumhagen
committed
Add skylite-ux install scripts
1 parent 1e63205 commit 9a24817

3 files changed

Lines changed: 184 additions & 0 deletions

File tree

ct/skylite-ux.sh

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#!/usr/bin/env bash
2+
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2026 community-scripts ORG
4+
# Author: bzumhagen
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/Wetzel402/Skylite-UX
7+
8+
APP="Skylite-UX"
9+
var_tags="${var_tags:-family;productivity}"
10+
var_cpu="${var_cpu:-2}"
11+
var_ram="${var_ram:-4096}"
12+
var_disk="${var_disk:-8}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-13}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
27+
if [[ ! -d /opt/skylite-ux ]]; then
28+
msg_error "No ${APP} Installation Found!"
29+
exit
30+
fi
31+
32+
msg_info "Stopping Service"
33+
systemctl stop skylite-ux
34+
msg_ok "Stopped Service"
35+
36+
msg_info "Updating ${APP}"
37+
cd /opt/skylite-ux
38+
$STD git pull
39+
msg_ok "Updated ${APP}"
40+
41+
msg_info "Rebuilding ${APP}"
42+
$STD npm ci
43+
$STD npx prisma generate
44+
$STD npm run build
45+
msg_ok "Rebuilt ${APP}"
46+
47+
msg_info "Running Database Migrations"
48+
$STD npx prisma migrate deploy
49+
msg_ok "Database Migrations Complete"
50+
51+
msg_info "Starting Service"
52+
systemctl start skylite-ux
53+
msg_ok "Started Service"
54+
msg_ok "Updated successfully!"
55+
exit
56+
}
57+
58+
start
59+
build_container
60+
description
61+
62+
msg_ok "Completed successfully!\n"
63+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
64+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
65+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "Skylite-UX",
3+
"slug": "skylite-ux",
4+
"categories": [19],
5+
"date_created": "2026-02-06",
6+
"type": "ct",
7+
"updateable": true,
8+
"privileged": false,
9+
"interface_port": 3000,
10+
"documentation": "https://github.com/Wetzel402/Skylite-UX",
11+
"website": "https://github.com/Wetzel402/Skylite-UX",
12+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/skylite-ux.webp",
13+
"config_path": "/opt/skylite-ux/.env",
14+
"description": "Skylite-UX is an open-source, self-hosted family management app with calendar, todos, shopping lists, and user management.",
15+
"install_methods": [
16+
{
17+
"type": "default",
18+
"script": "ct/skylite-ux.sh",
19+
"resources": {
20+
"cpu": 2,
21+
"ram": 4096,
22+
"hdd": 8,
23+
"os": "Debian",
24+
"version": "13"
25+
}
26+
}
27+
],
28+
"default_credentials": {
29+
"username": null,
30+
"password": null
31+
},
32+
"notes": [
33+
{
34+
"text": "Database credentials: `cat ~/skylite-ux.creds`",
35+
"type": "info"
36+
},
37+
{
38+
"text": "Build process requires ~4GB RAM. Runtime usage is much lower — RAM can be reduced after installation.",
39+
"type": "info"
40+
}
41+
]
42+
}

install/skylite-ux-install.sh

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2026 community-scripts ORG
4+
# Author: bzumhagen
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/Wetzel402/Skylite-UX
7+
8+
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
9+
color
10+
verb_ip6
11+
catch_errors
12+
setting_up_container
13+
network_check
14+
update_os
15+
16+
msg_info "Installing Dependencies"
17+
$STD apt-get install -y \
18+
git \
19+
openssl
20+
msg_ok "Installed Dependencies"
21+
22+
PG_VERSION="16" setup_postgresql
23+
NODE_VERSION="20" setup_nodejs
24+
25+
PG_DB_NAME="skylite" PG_DB_USER="skylite" PG_DB_SCHEMA_PERMS="true" setup_postgresql_db
26+
27+
msg_info "Installing ${APPLICATION}"
28+
$STD git clone https://github.com/Wetzel402/Skylite-UX.git /opt/skylite-ux
29+
msg_ok "Installed ${APPLICATION}"
30+
31+
msg_info "Configuring ${APPLICATION}"
32+
cat <<EOF >/opt/skylite-ux/.env
33+
DATABASE_URL=postgresql://${PG_DB_USER}:${PG_DB_PASS}@localhost:5432/${PG_DB_NAME}
34+
NODE_ENV=production
35+
HOST=0.0.0.0
36+
NUXT_PUBLIC_TZ=Etc/UTC
37+
NUXT_PUBLIC_LOG_LEVEL=warn
38+
EOF
39+
msg_ok "Configured ${APPLICATION}"
40+
41+
msg_info "Building ${APPLICATION}"
42+
cd /opt/skylite-ux
43+
$STD npm ci
44+
$STD npx prisma generate
45+
$STD npm run build
46+
msg_ok "Built ${APPLICATION}"
47+
48+
msg_info "Running Database Migrations"
49+
cd /opt/skylite-ux
50+
$STD npx prisma migrate deploy
51+
msg_ok "Database Migrations Complete"
52+
53+
msg_info "Creating Service"
54+
cat <<EOF >/etc/systemd/system/skylite-ux.service
55+
[Unit]
56+
Description=Skylite-UX
57+
After=network.target postgresql.service
58+
Wants=postgresql.service
59+
60+
[Service]
61+
Type=simple
62+
User=root
63+
WorkingDirectory=/opt/skylite-ux
64+
EnvironmentFile=/opt/skylite-ux/.env
65+
ExecStart=/usr/bin/node /opt/skylite-ux/.output/server/index.mjs
66+
Restart=on-failure
67+
RestartSec=5
68+
69+
[Install]
70+
WantedBy=multi-user.target
71+
EOF
72+
systemctl enable -q --now skylite-ux
73+
msg_ok "Created Service"
74+
75+
motd_ssh
76+
customize
77+
cleanup_lxc

0 commit comments

Comments
 (0)