|
@@ -100,10 +100,11 @@ if [[ "${NGINX_PORT}" != "80" ]] && [[ "${DOMAIN}" != "tipi.localhost" ]]; then
|
|
exit 1
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
+kill_watcher
|
|
# Configure Tipi
|
|
# Configure Tipi
|
|
"${ROOT_FOLDER}/scripts/configure.sh"
|
|
"${ROOT_FOLDER}/scripts/configure.sh"
|
|
-
|
|
|
|
-kill_watcher
|
|
|
|
|
|
+chmod -R a+rwx "${ROOT_FOLDER}/state/events"
|
|
|
|
+chmod -R a+rwx "${ROOT_FOLDER}/state/system-info.json"
|
|
"${ROOT_FOLDER}/scripts/watcher.sh" &
|
|
"${ROOT_FOLDER}/scripts/watcher.sh" &
|
|
|
|
|
|
# Copy the config sample if it isn't here
|
|
# Copy the config sample if it isn't here
|
|
@@ -201,9 +202,6 @@ mv -f "$ENV_FILE" "$ROOT_FOLDER/.env"
|
|
# Run system-info.sh
|
|
# Run system-info.sh
|
|
echo "Running system-info.sh..."
|
|
echo "Running system-info.sh..."
|
|
bash "${ROOT_FOLDER}/scripts/system-info.sh"
|
|
bash "${ROOT_FOLDER}/scripts/system-info.sh"
|
|
-echo "Fixing permissions for events file"
|
|
|
|
-chmod -R a+rwx "${ROOT_FOLDER}/state/events"
|
|
|
|
-chmod -R a+rwx "${ROOT_FOLDER}/state/system-info.json"
|
|
|
|
|
|
|
|
## Don't run if config-only
|
|
## Don't run if config-only
|
|
if [[ ! $ci == "true" ]]; then
|
|
if [[ ! $ci == "true" ]]; then
|