Просмотр исходного кода

only run flex keys monitor on node

tags/v1.4.23^0
Jonathan Cobb 4 лет назад
Родитель
Сommit
547f1eaf79
3 измененных файлов: 6 добавлений и 4 удалений
  1. +1
    -1
      bubble-server/src/main/resources/META-INF/bubble/bubble.properties
  2. +4
    -3
      bubble-server/src/main/resources/packer/roles/bubble/files/refresh_flex_keys_monitor.sh
  3. +1
    -0
      bubble-server/src/main/resources/packer/roles/bubble/tasks/main.yml

+ 1
- 1
bubble-server/src/main/resources/META-INF/bubble/bubble.properties Просмотреть файл

@@ -1 +1 @@
bubble.version=Adventure 1.4.22
bubble.version=Adventure 1.4.23

+ 4
- 3
bubble-server/src/main/resources/packer/roles/bubble/files/refresh_flex_keys_monitor.sh Просмотреть файл

@@ -14,11 +14,12 @@ function log {
echo "$(date): ${1}" >> ${LOG}
}

SSH_KEY_BASE=/home/bubble-flex/.ssh
FLEX_HOME=/home/bubble-flex
SSH_KEY_BASE=${FLEX_HOME}/.ssh
if [[ ! -d ${SSH_KEY_BASE} ]] ; then
mkdir ${SSH_KEY_BASE}
mkdir ${SSH_KEY_BASE} || die "Error creating ${SSH_KEY_BASE} directory"
fi
chown -R bubble-flex ${SSH_KEY_BASE} && chmod 700 ${SSH_KEY_BASE}
chown -R bubble-flex ${SSH_KEY_BASE} && chmod 700 ${SSH_KEY_BASE} && chown -R bubble-flex ${FLEX_HOME} || die "Error setting permissions on bubble-flex files"

BUBBLE_FLEX_KEYS=/home/bubble/.ssh/flex_authorized_keys
AUTH_FLEX_KEYS=${SSH_KEY_BASE}/authorized_keys


+ 1
- 0
bubble-server/src/main/resources/packer/roles/bubble/tasks/main.yml Просмотреть файл

@@ -109,6 +109,7 @@
copy:
src: supervisor_refresh_flex_keys_monitor.conf
dest: /etc/supervisor/conf.d/refresh_flex_keys_monitor.conf
when: install_type == 'node'

- name: Install bubble_upgrade_monitor supervisor conf file
copy:


Загрузка…
Отмена
Сохранить