Bugfix when keys/minions directory did not exist
Addressed a bug that caused the container to crash when `/home/salt/data/keys/minions` was not present Issue #9
This commit is contained in:
@@ -14,6 +14,7 @@ Please refer to the SaltStack [Release Notes](https://docs.saltstack.com/en/deve
|
|||||||
- Add support for setting timezone
|
- Add support for setting timezone
|
||||||
- Add logrotate support
|
- Add logrotate support
|
||||||
- Add supervisor support
|
- Add supervisor support
|
||||||
|
- Addressed a bug that caused the container to crash when `/home/salt/data/keys/minions` was not present
|
||||||
|
|
||||||
**2018.3.2**
|
**2018.3.2**
|
||||||
|
|
||||||
|
|||||||
@@ -182,6 +182,10 @@ function initialize_datadir()
|
|||||||
mkdir -p /var/cache/salt/master
|
mkdir -p /var/cache/salt/master
|
||||||
chown -R ${SALT_USER}: /var/cache/salt
|
chown -R ${SALT_USER}: /var/cache/salt
|
||||||
|
|
||||||
|
# Keys directories
|
||||||
|
mkdir -p ${SALT_KEYS_DIR}/minions
|
||||||
|
chown -R ${SALT_USER}: ${SALT_KEYS_DIR}
|
||||||
|
|
||||||
# Logs directory
|
# Logs directory
|
||||||
mkdir -p ${SALT_LOGS_DIR}/salt ${SALT_LOGS_DIR}/supervisor
|
mkdir -p ${SALT_LOGS_DIR}/salt ${SALT_LOGS_DIR}/supervisor
|
||||||
chmod -R 0755 ${SALT_LOGS_DIR}/supervisor
|
chmod -R 0755 ${SALT_LOGS_DIR}/supervisor
|
||||||
|
|||||||
Reference in New Issue
Block a user