Created
February 27, 2022 18:20
-
-
Save Himura2la/a4b9f8d180bc3e142ee12ee7175ea184 to your computer and use it in GitHub Desktop.
Connect the Outline Manager to an existing server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo bash -c "$(wget -qO- https://gist.githubusercontent.com/Himura2la/a4b9f8d180bc3e142ee12ee7175ea184/raw)"