Refactor multiple scripts: fix garmin-grafana unbound var, remove creds files, fix tor-snowflake user/sudo, fix ente source URL, fix oxicloud env sourcing, fix pixelfed creds footer

This commit is contained in:
CanbiZ (MickLesk)
2026-03-27 14:32:27 +01:00
parent 682d8b566a
commit 60965428ab
9 changed files with 18 additions and 48 deletions

View File

@@ -51,28 +51,6 @@ endpoint:
EOF
msg_ok "Configured Ente CLI"
msg_info "Saving Ente Credentials"
{
echo "Important Configuration Notes:"
echo "- Frontend is built with IP: $LOCAL_IP"
echo "- If IP changes, run: /opt/ente/rebuild-frontend.sh"
echo "- Museum API: http://$LOCAL_IP:8080"
echo "- Photos UI: http://$LOCAL_IP:3000"
echo "- Accounts UI: http://$LOCAL_IP:3001"
echo "- Auth UI: http://$LOCAL_IP:3003"
echo ""
echo "Post-Installation Steps Required:"
echo "1. Create your first user account via the web UI"
echo "2. Check museum logs for email verification code:"
echo " journalctl -u ente-museum -n 100 | grep -i 'verification'"
echo "3. Use verification code to complete account setup"
echo "4. Remove subscription limit (replace <email> with your account):"
echo " ente admin update-subscription -a <email> -u <email> --no-limit"
echo ""
echo "Note: Email verification requires manual intervention since SMTP is not configured"
} >>~/ente.creds
msg_ok "Saved Ente Credentials"
msg_info "Building Museum (server)"
cd /opt/ente/server
$STD corepack enable

View File

@@ -27,7 +27,7 @@ msg_ok "Installed InfluxDB"
msg_info "Installing Chronograf"
CHRONOGRAF_VERSION=$(get_latest_github_release "influxdata/chronograf")
fetch_and_deploy_from_url "https://dl.influxdata.com/chronograf/releases/chronograf_${CHRONOGRAF_VERSION}_amd64.deb"
fetch_and_deploy_from_url "https://dl.influxdata.com/chronograf/releases/chronograf_${CHRONOGRAF_VERSION}_amd64.deb" ""
msg_ok "Installed Chronograf"
msg_info "Configuring InfluxDB"

View File

@@ -64,7 +64,7 @@ StandardError=journal
[Install]
WantedBy=multi-user.target
EOF
$STD systemctl enable -q --now oxicloud
systemctl enable -q --now oxicloud
msg_ok "Created OxiCloud Service"
motd_ssh

View File

@@ -15,18 +15,14 @@ update_os
setup_go
msg_info "Creating snowflake user"
useradd -m -r -s /usr/sbin/nologin -d /home/snowflake snowflake
msg_ok "Created snowflake user"
msg_info "Building Snowflake"
RELEASE=$(curl -fsSL https://gitlab.torproject.org/api/v4/projects/tpo%2Fanti-censorship%2Fpluggable-transports%2Fsnowflake/releases | jq -r '.[0].tag_name' | sed 's/^v//')
$STD curl -fsSL "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/archive/v${RELEASE}/snowflake-v${RELEASE}.tar.gz" -o /opt/snowflake.tar.gz
$STD tar -xzf /opt/snowflake.tar.gz -C /opt
$STD rm -rf /opt/snowflake.tar.gz
$STD mv /opt/snowflake-v${RELEASE} /opt/tor-snowflake
$STD chown -R snowflake:snowflake /opt/tor-snowflake
$STD sudo -H -u snowflake bash -c "cd /opt/tor-snowflake/proxy && go build -o snowflake-proxy ."
rm -rf /opt/snowflake.tar.gz
mv /opt/snowflake-v${RELEASE} /opt/tor-snowflake
cd /opt/tor-snowflake/proxy
$STD go build -o snowflake-proxy .
echo "${RELEASE}" >~/.tor-snowflake
msg_ok "Built Snowflake Proxy v${RELEASE}"
@@ -40,8 +36,6 @@ Wants=network-online.target
[Service]
Type=simple
User=snowflake
Group=snowflake
WorkingDirectory=/opt/tor-snowflake/proxy
ExecStart=/opt/tor-snowflake/proxy/snowflake-proxy -verbose -unsafe-logging
Restart=always