mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-31 10:14:35 +01:00
Fixed nginx file rights and moved touch installation.json in setup
This commit is contained in:
@@ -11,6 +11,7 @@ if [[ $1 ]]; then
|
||||
|
||||
fi
|
||||
|
||||
chmod -R g+rw /var/run/fcgiwrap.socket /etc/nginx/conf.d/*
|
||||
chown -R :nginx /etc/nginx/conf.d/*
|
||||
spawn-fcgi -M 0660 -s /var/run/fcgiwrap.socket -u $user -g nginx -U $user -- `which fcgiwrap`
|
||||
chmod g+rw /var/run/fcgiwrap.socket
|
||||
nginx -g "daemon off;"
|
||||
|
||||
2
dist/setup.sh
vendored
2
dist/setup.sh
vendored
@@ -359,6 +359,8 @@ install_docker() {
|
||||
if [ ! -d $GATEKEEPER_DATAPATH ]; then
|
||||
step " [32mcreate[0m $GATEKEEPER_DATAPATH"
|
||||
sudo_if_required mkdir -p $GATEKEEPER_DATAPATH
|
||||
# prevent mounting installation.json as a directory
|
||||
sudo_if_required touch $GATEKEEPER_DATAPATH/installation.json
|
||||
next
|
||||
fi
|
||||
|
||||
|
||||
@@ -15,11 +15,6 @@ export USER=$(id -u <%= default_username %>):$(id -g <%= default_username %>)
|
||||
export ARCH=$(uname -m)
|
||||
current_path="$(cd "$(dirname "$0")" >/dev/null && pwd)"
|
||||
|
||||
if [[ ! -e <%= gatekeeper_datapath %>/installation.json ]]; then
|
||||
# prevent mounting installation.json as a directory
|
||||
touch <%= gatekeeper_datapath %>/installation.json
|
||||
fi
|
||||
|
||||
<% if (docker_mode == 'swarm') { %>
|
||||
docker stack deploy -c $current_path/docker-compose.yaml cyphernode
|
||||
<% } else if(docker_mode == 'compose') { %>
|
||||
|
||||
Reference in New Issue
Block a user