mirror of
https://github.com/Cameri/nostream.git
synced 2025-03-17 13:21:45 +01:00
parent
e1561e78fd
commit
039015bafb
@ -4,6 +4,15 @@ DOCKER_COMPOSE_FILE="${PROJECT_ROOT}/docker-compose.yml"
|
|||||||
NOSTR_CONFIG_DIR="${PROJECT_ROOT}/.nostr"
|
NOSTR_CONFIG_DIR="${PROJECT_ROOT}/.nostr"
|
||||||
SETTINGS_FILE="${NOSTR_CONFIG_DIR}/settings.yaml"
|
SETTINGS_FILE="${NOSTR_CONFIG_DIR}/settings.yaml"
|
||||||
DEFAULT_SETTINGS_FILE="${PROJECT_ROOT}/resources/default-settings.yaml"
|
DEFAULT_SETTINGS_FILE="${PROJECT_ROOT}/resources/default-settings.yaml"
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
|
||||||
|
if [[ ${CURRENT_DIR} =~ /scripts$ ]]; then
|
||||||
|
echo "Please run this script from the Nostream root folder, not the scripts directory."
|
||||||
|
echo "To do this, change up one directory, and then run the following command:"
|
||||||
|
echo "./scripts/start"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ "$EUID" -eq 0 ]
|
if [ "$EUID" -eq 0 ]
|
||||||
then echo "Error: Nostream should not be run as root."
|
then echo "Error: Nostream should not be run as root."
|
||||||
|
@ -4,6 +4,14 @@ set -e
|
|||||||
PROJECT_ROOT="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))/.."
|
PROJECT_ROOT="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))/.."
|
||||||
DOCKER_COMPOSE_FILE="${PROJECT_ROOT}/docker-compose.yml"
|
DOCKER_COMPOSE_FILE="${PROJECT_ROOT}/docker-compose.yml"
|
||||||
DOCKER_COMPOSE_LOCAL_FILE="${PROJECT_ROOT}/docker-compose.local.yml"
|
DOCKER_COMPOSE_LOCAL_FILE="${PROJECT_ROOT}/docker-compose.local.yml"
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
|
||||||
|
if [[ ${CURRENT_DIR} =~ /scripts$ ]]; then
|
||||||
|
echo "Please run this script from the Nostream root folder, not the scripts directory."
|
||||||
|
echo "To do this, change up one directory, and then run the following command:"
|
||||||
|
echo "./scripts/start"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$EUID" -eq 0 ]
|
if [ "$EUID" -eq 0 ]
|
||||||
then echo "Error: Nostream should not be run as root."
|
then echo "Error: Nostream should not be run as root."
|
||||||
|
@ -6,6 +6,14 @@ TOR_DATA_DIR="$PROJECT_ROOT/.nostr/tor/data"
|
|||||||
NOSTR_CONFIG_DIR="${PROJECT_ROOT}/.nostr"
|
NOSTR_CONFIG_DIR="${PROJECT_ROOT}/.nostr"
|
||||||
SETTINGS_FILE="${NOSTR_CONFIG_DIR}/settings.yaml"
|
SETTINGS_FILE="${NOSTR_CONFIG_DIR}/settings.yaml"
|
||||||
DEFAULT_SETTINGS_FILE="${PROJECT_ROOT}/resources/default-settings.yaml"
|
DEFAULT_SETTINGS_FILE="${PROJECT_ROOT}/resources/default-settings.yaml"
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
|
||||||
|
if [[ ${CURRENT_DIR} =~ /scripts$ ]]; then
|
||||||
|
echo "Please run this script from the Nostream root folder, not the scripts directory."
|
||||||
|
echo "To do this, change up one directory, and then run the following command:"
|
||||||
|
echo "./scripts/start"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$EUID" -eq 0 ]
|
if [ "$EUID" -eq 0 ]
|
||||||
then echo "Error: Nostream should not be run as root."
|
then echo "Error: Nostream should not be run as root."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user