Skip to content

Commit 8c0c4ce

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

3 files changed

Lines changed: 191 additions & 0 deletions

File tree

ct/skylite-ux.sh

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

install/skylite-ux-install.sh

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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/ProxmoxVED/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 install -y openssl
18+
msg_ok "Installed Dependencies"
19+
20+
PG_VERSION="16" setup_postgresql
21+
NODE_VERSION="20" setup_nodejs
22+
PG_DB_NAME="skylite" PG_DB_USER="skylite" PG_DB_SCHEMA_PERMS="true" setup_postgresql_db
23+
24+
fetch_and_deploy_gh_release "skylite-ux" "Wetzel402/Skylite-UX" "tarball" "2026.2.2"
25+
26+
msg_info "Configuring skylite-ux"
27+
cat <<EOF >/opt/skylite-ux/.env
28+
DATABASE_URL=postgresql://${PG_DB_USER}:${PG_DB_PASS}@localhost:5432/${PG_DB_NAME}
29+
NODE_ENV=production
30+
HOST=0.0.0.0
31+
NUXT_PUBLIC_TZ=Etc/UTC
32+
NUXT_PUBLIC_LOG_LEVEL=warn
33+
EOF
34+
msg_ok "Configured skylite-ux"
35+
36+
msg_info "Building skylite-ux"
37+
cd /opt/skylite-ux
38+
$STD npm ci
39+
$STD npx prisma generate
40+
$STD npm run build
41+
msg_ok "Built skylite-ux"
42+
43+
msg_info "Running Database Migrations"
44+
cd /opt/skylite-ux
45+
$STD npx prisma migrate deploy
46+
msg_ok "Ran Database Migrations"
47+
48+
msg_info "Creating Service"
49+
cat <<EOF >/etc/systemd/system/skylite-ux.service
50+
[Unit]
51+
Description=Skylite-UX
52+
After=network.target postgresql.service
53+
Wants=postgresql.service
54+
55+
[Service]
56+
Type=simple
57+
User=root
58+
WorkingDirectory=/opt/skylite-ux
59+
EnvironmentFile=/opt/skylite-ux/.env
60+
ExecStart=/usr/bin/node /opt/skylite-ux/.output/server/index.mjs
61+
Restart=on-failure
62+
RestartSec=5
63+
64+
[Install]
65+
WantedBy=multi-user.target
66+
EOF
67+
systemctl enable -q --now skylite-ux
68+
msg_ok "Created Service"
69+
70+
motd_ssh
71+
customize
72+
cleanup_lxc

0 commit comments

Comments
 (0)