Skip to content

Instantly share code, notes, and snippets.

@Himura2la
Created February 27, 2022 18:20
Show Gist options
  • Save Himura2la/a4b9f8d180bc3e142ee12ee7175ea184 to your computer and use it in GitHub Desktop.
Save Himura2la/a4b9f8d180bc3e142ee12ee7175ea184 to your computer and use it in GitHub Desktop.
Connect the Outline Manager to an existing server
#!/bin/bash
export SHADOWBOX_DIR="${SHADOWBOX_DIR:-/opt/outline}"
readonly ACCESS_CONFIG="${ACCESS_CONFIG:-${SHADOWBOX_DIR}/access.txt}"
function get_field_value {
grep "$1" "${ACCESS_CONFIG}" | sed "s/$1://"
}
echo -e "\033[1;32m{\"apiUrl\":\"$(get_field_value apiUrl)\",\"certSha256\":\"$(get_field_value certSha256)\"}\033[0m"
@Himura2la
Copy link
Author

sudo bash -c "$(wget -qO- https://gist.githubusercontent.com/Himura2la/a4b9f8d180bc3e142ee12ee7175ea184/raw)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment