File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed
Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,15 @@ DOCKER_COMPOSE_FILE="${PROJECT_ROOT}/docker-compose.yml"
44NOSTR_CONFIG_DIR=" ${PROJECT_ROOT} /.nostr"
55SETTINGS_FILE=" ${NOSTR_CONFIG_DIR} /settings.yaml"
66DEFAULT_SETTINGS_FILE=" ${PROJECT_ROOT} /resources/default-settings.yaml"
7+ CURRENT_DIR=$( pwd)
8+
9+ if [[ ${CURRENT_DIR} =~ /scripts$ ]]; then
10+ echo " Please run this script from the Nostream root folder, not the scripts directory."
11+ echo " To do this, change up one directory, and then run the following command:"
12+ echo " ./scripts/start"
13+ exit 1
14+ fi
15+
716
817if [ " $EUID " -eq 0 ]
918 then echo " Error: Nostream should not be run as root."
Original file line number Diff line number Diff line change 44PROJECT_ROOT=" $( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) ) /.."
55DOCKER_COMPOSE_FILE=" ${PROJECT_ROOT} /docker-compose.yml"
66DOCKER_COMPOSE_LOCAL_FILE=" ${PROJECT_ROOT} /docker-compose.local.yml"
7+ CURRENT_DIR=$( pwd)
8+
9+ if [[ ${CURRENT_DIR} =~ /scripts$ ]]; then
10+ echo " Please run this script from the Nostream root folder, not the scripts directory."
11+ echo " To do this, change up one directory, and then run the following command:"
12+ echo " ./scripts/start"
13+ exit 1
14+ fi
715
816if [ " $EUID " -eq 0 ]
917 then echo " Error: Nostream should not be run as root."
Original file line number Diff line number Diff line change @@ -6,6 +6,14 @@ TOR_DATA_DIR="$PROJECT_ROOT/.nostr/tor/data"
66NOSTR_CONFIG_DIR=" ${PROJECT_ROOT} /.nostr"
77SETTINGS_FILE=" ${NOSTR_CONFIG_DIR} /settings.yaml"
88DEFAULT_SETTINGS_FILE=" ${PROJECT_ROOT} /resources/default-settings.yaml"
9+ CURRENT_DIR=$( pwd)
10+
11+ if [[ ${CURRENT_DIR} =~ /scripts$ ]]; then
12+ echo " Please run this script from the Nostream root folder, not the scripts directory."
13+ echo " To do this, change up one directory, and then run the following command:"
14+ echo " ./scripts/start"
15+ exit 1
16+ fi
917
1018if [ " $EUID " -eq 0 ]
1119 then echo " Error: Nostream should not be run as root."
You can’t perform that action at this time.
0 commit comments