A free, open, self-hosted app platform (GNU AGPLv3): one-click app deploys, Traefik reverse proxy with automatic SSL, rootless Docker support, gluetun VPN routing, and a web dashboard to manage it all. Free & open forever to self-host; optional paid hosted services fund it. See PROMISE.md. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
31 lines
800 B
Bash
31 lines
800 B
Bash
#!/bin/bash
|
|
|
|
manifestWrite()
|
|
{
|
|
local app_name="$1"
|
|
local app_dir="$containers_dir$app_name"
|
|
local manifest_path="$app_dir/.libreportal-manifest.json"
|
|
|
|
if [[ ! -d "$app_dir" ]]; then
|
|
isError "Cannot write manifest — $app_dir does not exist"
|
|
return 1
|
|
fi
|
|
|
|
local manifest
|
|
manifest=$(manifestCollect "$app_name")
|
|
echo "$manifest" | sudo tee "$manifest_path" >/dev/null
|
|
sudo chown "$docker_install_user":"$docker_install_user" "$manifest_path"
|
|
sudo chmod 0644 "$manifest_path"
|
|
|
|
local sha
|
|
sha=$(echo "$manifest" | sha256sum | cut -c1-12)
|
|
echo "$sha"
|
|
}
|
|
|
|
manifestRemove()
|
|
{
|
|
local app_name="$1"
|
|
local manifest_path="$containers_dir$app_name/.libreportal-manifest.json"
|
|
[[ -f "$manifest_path" ]] && sudo rm -f "$manifest_path"
|
|
}
|