Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions ct/openlist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,4 @@ msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}:5244${CL}"
echo -e "${INFO}${YW}Credentials saved in:${CL}"
echo -e "${TAB}/root/openlist.creds"
echo -e "${INFO}${YW}Credentials: /root/openlist.creds (inside the container)${CL}"
13 changes: 6 additions & 7 deletions install/openlist-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,17 @@ update_os
fetch_and_deploy_gh_release "openlist" "OpenListTeam/OpenList" "prebuild" "latest" "/opt/openlist" "openlist-linux-musl-$(arch_resolve "amd64" "arm64").tar.gz"

msg_info "Setting up OpenList"
ADMIN_PASS="$(head -c 256 /dev/urandom | tr -dc 'A-Za-z0-9')"
ADMIN_PASS="${ADMIN_PASS:0:16}"
ADMIN_PASS="$(random_password 16)"
$STD /opt/openlist/openlist --data /opt/openlist_data admin set "$ADMIN_PASS"
if [[ ! -f /opt/openlist_data/data.db ]]; then
msg_error "OpenList did not initialise its database"
exit 1
fi
{
echo "OpenList Credentials"
echo "Username: admin"
echo "Password: ${ADMIN_PASS}"
} >~/openlist.creds
cat <<EOF >~/openlist.creds
OpenList Credentials
Username: admin
Password: ${ADMIN_PASS}
EOF
chmod 600 ~/openlist.creds
msg_ok "Set up OpenList"

Expand Down
16 changes: 12 additions & 4 deletions json/openlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@
"os": "Debian",
"version": "13"
}
},
{
"type": "alpine",
"script": "ct/openlist.sh",
"config_path": "/opt/openlist_data/config.json",
"resources": {
"cpu": 1,
"ram": 512,
"hdd": 4,
"os": "Alpine",
"version": "3.24"
}
}
],
"default_credentials": {
Expand All @@ -41,10 +53,6 @@
{
"text": "The admin password is generated during the installation and saved to /root/openlist.creds inside the container. Change it with `/opt/openlist/openlist --data /opt/openlist_data admin set <password>`.",
"type": "info"
},
{
"text": "Config, database, logs and search index live in /opt/openlist_data, outside the directory an update replaces, so updating never touches them.",
"type": "info"
}
]
}
Loading